• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to generate client stub from an .wsdl file using RAD 6 ?

 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
     
    Harsha Gedala
    Ranch Hand
    Posts: 41
    Eclipse IDE Java Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks for the reply
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!