• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

WSDL -> WSDD? or WSDD -> WSDL?

 
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 8944
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WSDD ref
http://www.osmoticweb.com/axis-wsdd/
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic