| Author |
How to generate client stub from an .wsdl file using RAD 6 ?
|
Harsha Gedala
Ranch Hand
Joined: Jun 04, 2008
Posts: 41
|
|
Hi, I have a web project. Now I just received an .wsdl file that is at /WEB-INF/wsdl/SendEmail.wsdl I need to know how do I crete the client stub from this wsdl ? I will need a little elaborated explanation if possible. I simply right clicked the .wsdl > other > web services > then all I see are 1. DADX file 2.Web Services DADX Group Configuration. According to the book, I should have had an option of >Web Services >Generate Client which I didn't have. Please let me know. Thanks for the reply in advance.
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
Well, that could be caused by any number of problems. For example: The IDE configuration is corrupted The file may have a wsdl extension but actually contains the Data Access Definition eXtended (DADX) file that is used to generate a DB2 DADX Web Service from a stored procedure from SQL statements (how terribly un-SOA of WebSphere) which is useless to you as a client. Check the contents of the file. Does it look anything like the WSDL Document example? If it doesn't go back and get the WSDL that should be published/generated by the the DADX web service. Otherwise use the WSDL2Client command line tool in <RAD60_HOME>/bin as described on page 408 of "Using commandline tools: WSDL2client" in WebSphere Version 6 Web Services Handbook Development and Deployment WSDL2Client Manual Page It will take a URI that is remote or on the file system. See also Importing the WSDL2Client generated client into a Java project
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
Harsha Gedala
Ranch Hand
Joined: Jun 04, 2008
Posts: 41
|
|
|
thanks for the reply
|
 |
 |
|
|
subject: How to generate client stub from an .wsdl file using RAD 6 ?
|
|
|