Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Generating Web Service Server from a WSDL  RSS feed

 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is is possible to generate a java web service server from a wsdl file?

(We have recieved a wsdl file from our business partners and want to test against a server without bothering our partners. They are using .NET but we are not proficent at .NET and would like to use java as our testing web service server.)
 
Kaustabh Singha Roy
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very easily possible to get a skeletal structure same as your partner company from the WSDL file. But WSDLs only represent the interface of the web services, not the logic. The logic have to be implemented by the programmers at your side.

If you are familiar with Ant and if we assume that you are going to use Axis to implement the web services, then there is an Ant task <axis-wsdl2java> available that can generate a web service from a WSDL file. It generates several files among which one will be XYZSoapBindingImpl.java which you will edit to implement the logic of the service. A deploy.wsdd file will also be generated which will enable you to deploy the service to Axis with a <axis-admin> Ant task.

Here are some links that have more technical information.

http://ws.apache.org/axis/java/ant/axis-java2wsdl.html
http://www.lucianofiandesio.com/javatales/axant.html

Hope this will help.
 
Nathan Hook
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the advice.

It was very easy to create the implementing web service from the wsdl file.

It is necessary to use the wsdl2java ant task and use the serverside option of that task.



Very easy, very nice.

Thank you for your help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!