Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WSDL -> WSDD? or WSDD -> WSDL?

 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. That WSDL is generated from the Java code.
 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks!
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WSDD ref
http://www.osmoticweb.com/axis-wsdd/
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jenny Yin:
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.

Thanks!


1. Yes, its depends on servlet-config.wsdd, it act as a basic reference for the axisservlet.

2. Along with what pradeep posted, check this as well http://ws.apache.org/axis/

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 ]
 
Jian Yi
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, guys, for your reply.

I'm not going to write my own wsdd or wsdl. I have complex return types in my methods. Java2WSDL can generate them in a snap!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic