Hello all. Please excuse the nubie question, but then, where else would I ask it? ;-)
I'm investigating how I would add a web service to a currently existing web application. Within this web app, I have an API containing my data structures and the actions / commands that can be performed on them. As a guide, I am following this document from Dion Almaer: http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html. >From Dion's guide, I believe that the appropriate steps are: 1.) generate the WSDL containing the XML statement of my data structure and commands by using the java2WSDL tool. 2.) generate the server-side wrapping code (I'm not interested in generating client-side code - that's up to my customer) by using the wsdl2java tool. 3.) fill in the wrapper code generated from step 2, by redirecting the methods to my API. 4.) compile all API and wrapper code, and then bundle up (war, etc) 5.) deploy web application (and web service) code to web container (tomcat) 6.) deploy web service (java AdminClient deploy.wsdd) First question: is this summary correct? Is there anything I'm missing, or is there an easier way to do it? Now, let me setup for my second question. I don't know the address / URL / URN of the web service until deployment time. Basically, I'm creating a web application and service combination, and then giving it to a customer. He's then going to deploy it to a server of his choosing. The problem that I have is that the java2wsdl tool in step 1 requires the destination address of the service, but I don't know it. Second question: how can I create a web service and web application combination without knowledge of the destination application? Does this mean I'd have to generate the deploy.wsdd by hand? I have a rather mature (read complicated and large) data structure. How would I include the necessary java object to xml mapping in the deploy.wsdd? Would XDoclet be able to generate the deploy.wsdd for me? Thanks. -- Jay Glanville