my dog learned polymorphism*
The moose likes Web Services and the fly likes Generate Bean from WSDL-File ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Generate Bean from WSDL-File ?" Watch "Generate Bean from WSDL-File ?" New topic
Author

Generate Bean from WSDL-File ?

Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Hi,
i try to use SOAP-Messaging from a JSP as frontend.
The changeable formfield-entries shall filled to a bean with set-methods.
A SOAP-XML shall be generated from this bean and send to the SOAP-Server.
Vice-versa i want the response-xml to be mapped to the bean again and access the entries with getters to display them on a JSP.
Is there a free tool or class to generate an object-representation (e.g. Bean) from a WSDL-File?
I'm pretty new to this, so all hints are highly appreciated.
Thx cb
edit: as you might have guessed, my questions concern the clientside usage of soap
[ December 12, 2003: Message edited by: Chris Baron ]
Howard Kushner
author
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Hello Chris,
There is a tool but it's not free: IBM WebSphere Studio Application Developer. You can download an evaluation copy from IBM that is good for 60 days. It does what you are asking for and a whole lot more.
HTH,
[ December 12, 2003: Message edited by: Howard Kushner ]

Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="http://www.amazon.com/exec/obidos/tg/detail/-/1931182108/" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by Chris Baron:
Is there a free tool or class to generate an object-representation (e.g. Bean) from a WSDL-File?
You could take a peek inside Apache Axis (see package org.apache.axis.wsdl, for example).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Thank you very much Howard,
but maybe i'd need to use a webservice in three months.
What way should i choose to get an similar result by feet.
An less generic one i guess...
So, new question:
Wich Classes are appropriate to map a known XML-structure to an Object,
change the entries and generate XML from it? ...and vice versa.
cb
Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
Thanks Lasse,
i will take a peek there.
I bet, i will be back with more questions
cb
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generate Bean from WSDL-File ?
 
Similar Threads
Creating WSDL
Generating Java class from XSD, then gen. WSDL
Generate SOAP XML using WSDL
Class not found at runtime
Developing new web service!!