• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

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

 
Ranch Hand
Posts: 41
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    thanks for the reply
     
    Liar, liar, pants on fire! refreshing plug:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
    reply
      Bookmark Topic Watch Topic
    • New Topic