File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to generate client stub from an .wsdl file using RAD 6 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to generate client stub from an .wsdl file using RAD 6 ?" Watch "How to generate client stub from an .wsdl file using RAD 6 ?" New topic
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
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: How to generate client stub from an .wsdl file using RAD 6 ?
     
    Similar Threads
    RPC mapping file
    where to download wscompile?
    Spring-WS client domain classes
    Generating WSDL
    Web services basic implementation