aspose file tools*
The moose likes Web Services and the fly likes WSDL -> WSDD?  or WSDD -> WSDL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL -> WSDD?  or WSDD -> WSDL?" Watch "WSDL -> WSDD?  or WSDD -> WSDL?" New topic
Author

WSDL -> WSDD? or WSDD -> WSDL?

Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
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
No. That WSDL is generated from the Java code.
Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
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

Joined: Feb 27, 2002
Posts: 8919

WSDD ref
http://www.osmoticweb.com/axis-wsdd/


Groovy
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
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 ]

Spritle Software Blogs
Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL -> WSDD? or WSDD -> WSDL?