• Post Reply Bookmark Topic Watch Topic
  • New Topic

When to generate the stubs ?

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey ranchers.
I am using Tomcat 5.0 and Axis 1.1
I built a webservice and create the WSDD file and every thing is OK.
I used the following command :
java org.apache.axis.wsdl.WSDL2Java -v bookservice.wsdl
I got a stubs files.
my first question is should I put the created files (the service locator and a stub) under axis web application ?
when trying the following command :
java org.apache.axis.wsdl.WSDL2Java -v -s -S true bookservice.wsdl
I got a new files like implementaion file and a skeleton file and a new WSDD file.
my second question is should I put the skeleton files under axis web application ?
should I run the new WSDD file ?
when to use this approach ?
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The two major purpose of WSDL2Java is to
  • create client stubs to access service.
  • create server skeleton and wsdd for reference.


  • You don't need to put this client stubs in your web application unless your JSP/Servlet need them in web-inf/classes folder.

    No you don't need to put your skeleton files in your webapplication, the WSDL2Java generated skeleton files will help you to understand how the remote service was implemented and how the WSDD was made and so on. You can use it as model or you can build it further to make real service out of it.
    [ October 12, 2004: Message edited by: Balaji Loganathan ]
     
    Hussein Baghdadi
    clojure forum advocate
    Bartender
    Posts: 3479
    Clojure Mac Objective C
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks alot for helping, but I have some questions please...
    (I am new in WebServices topic and I have no experience, so please be patient)
    1. passing -S to WSDL2Java , I got a new WSDD file, should I run this file ?
    2. You can use it as model or you can build it further to make real service out of it.
    would you explaing more please...
    thanks.
     
    Balaji Loganathan
    author and deputy
    Bartender
    Posts: 3150
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I'm sorry for my above incorrect reply..i edited it now.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!