I'm new to Web Service. I wonder how you guys do it. do you write your WSDD file then generate WSDL? or, you generate WSDL using Java2WSDL, then generate WSDD file from generated WSDL?
Thanks, Jenny
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
I write my WSDD by hand (it's only a few lines of code and you can always use a template...).
Regarding WSDL-to-Java versus Java-to-WSDL, it depends. I tend to prefer a hand-written WSDL with generated Java code because that way the interface (the WSDL document) is more easily understood. Then again, I haven't done web services stuff for a while so the latest versions of Java2WSDL might have improved...
correct me if I'm wrong. if we have the wsdd file and we have the axis servlet, then if we use <http://localhost:8080/axis/services/XXXXService?wsdl>, we can generate WSDL, right? My question is, this WSDL is generated from our wsdd file, correct?
Lasse Koskela
author
Sheriff
Joined: Jan 23, 2002
Posts: 11962
5
posted
0
No. That WSDL is generated from the Java code.
Jian Yi
Ranch Hand
Joined: Feb 01, 2002
Posts: 127
posted
0
Questions:
1. who generates the wsdl in <http://localhost:8080/axis/services/XXXXService?wsdl>? AxisServlet? It looks like AxisServlet references server-config.wsdd file for the web services on this server. When I manually removed that XXXXService from server-config.wsdd, <http://localhost:8080/axis/services/XXXXService?wsdl> no longer works.
2. Can anyone recommend me a good web site for writing wsdd?
3. Is it necessary to run AdminClient to deploy a web service? Looks like as long as I put the web service in server-config.wsdd, it automatically deploys it.
1. who generates the wsdl in <http://localhost:8080/axis/services/XXXXService?wsdl>? AxisServlet? It looks like AxisServlet references server-config.wsdd file for the web services on this server. When I manually removed that XXXXService from server-config.wsdd, <http://localhost:8080/axis/services/XXXXService?wsdl> no longer works.
2. Can anyone recommend me a good web site for writing wsdd?
3. Is it necessary to run AdminClient to deploy a web service? Looks like as long as I put the web service in server-config.wsdd, it automatically deploys it.
Thanks!
1. Yes, its depends on servlet-config.wsdd, it act as a basic reference for the axisservlet.
3. Are you using Tomcat, sometimes it requires the application server to be restarted for harmoniying the new webservices. I am using servletexec and i add directly to the serveltconfig.wsdd file, its works nice. [ June 22, 2004: Message edited by: Balaji Loganathan ]