Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WSDL Generation Tools

Tags:

soap

wsdl

Can anyone recommend a good (preferably open source) tool for creating WSDL files for some soap web services?

I've tried playing around with some of the eclipse plug ins available and was less than impressed with what I found.

like image 533
Erratic Avatar asked Sep 16 '08 14:09

Erratic


People also ask

What are WSDL tools?

Web Services Description Language (WSDL) is a standard specification for describing networked, XML-based services. It provides a simple way for service providers to describe the basic format of requests to their systems regardless of the underlying run-time implementation.

How do we generate WSDL?

In the main menu, go to Tools | XML WebServices and WSDL | Generate WSDL From Java Code. In the Generate WSDL From Java dialog that opens, specify the following: The name and URL address of the Web service. The protocol and encoding style used when accessing the public operations of the Web service.

What is WSDL generator?

A Web Services Description Language (WSDL) document specifies the interface to a web service, and enables a web service client to start it. A WSDL document that is generated from a message model defines web service requests and responses in terms of the messages that you have defined in that message model.

How do I create a WSDL for a web service?

To generate a web service from a WSDL: On the Project Explorer or Navigator tab, right-click the WSDL and select Web Services > Generate Web Service.

Can SOAP be generated from WSDL?

You can create a SOAP API from a WSDL document accessed through a URL or by selecting a WSDL file. You can specify whether Integration Cloud enforces strict, lax, or no content model compliance when generating document types from the XML Schema definition contained or referenced in the WSDL document.


2 Answers

One of the more interesting tools for bypassing all the associated headaches with WSDL is the XSLT script created by Arjen Poutsma (the lead developer of Spring Web Services):

http://blog.springframework.com/arjen/archives/2006/07/27/xslt-that-transforms-from-xsd-to-wsdl/

Basically it allows you to develop simple schemas that correspond to your desired operations (i.e. <BuyItem> and <BuyItemResponse>) and then generate all the associated WSDL crap from the XSD. I highly recommend it if you are interested in 'contract-first' web-services but the idea of using a WSDL as the starting point for that contract makes you feel green.

like image 113
John Greeley Avatar answered Oct 07 '22 14:10

John Greeley


As mentioned above, probably the easiest thing to do is use Apache CXF or Apache Axis2 to automatically generate your WSDL for you.

If you have downloaded the Java EE version of Eclipse, you should be able to create a Dynamic Web Project with the Axis2 facets. If you create a simple Java class in the project, you should be able to right-click on it, and choose Web Services->Create Web Service. That should automatically create an Axis2 service for you.

WSDL would then be available from some URL like: http://localhost/axis/{yourservice}?WSDL

like image 30
Michael Sharek Avatar answered Oct 07 '22 14:10

Michael Sharek