• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating WSDL

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have couple of questions:

1. Are there any tools available which will convert a SOAP to WSDL? I found one when I googled which was an XSL but it doesn't work

2. I manually created a WSDL but I am getting error on namespace on Rational Application Developer editor:

For example how would I write the WSDL for the following SOAP Body? Without the namespace I can get it fine:


Any help will be appreciated.

Thanks
 
James Ward
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not start with a Java Class, instead of SOAP.

Write a Java Class, with appropriate methods, and then use 'java2wsdl' command available in Axis2. You will find it in <AXIS2_HOME>\bin\ dir.

This is a good way to arrive at wsdl.
 
Hemanth H Bhat
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well i don't think we would be able to create a full wsdl file based on a SOAP XML due to the following reasons

Its not necessary that the SOAP XML that you have would contain all the parameters that are supported by the wsdl as many optional parameters/Tags might be missing from the SOAP request or the SOAP response XML

Also the wsdl may support multiple web service operations so each operation will have a separate set of request and response SOAP XML's hence based on a single SOAP XML it would be hard to derive the complete wsdl file

 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Ward wrote:Why not start with a Java Class, instead of SOAP.

Write a Java Class, with appropriate methods, and then use 'java2wsdl' command available in Axis2. You will find it in <AXIS2_HOME>\bin\ dir.

This is a good way to arrive at wsdl.


Hi James,
I would still have the same problem if I create the Java Class. How would I get the appropriate name spaces? I can create the wsdl fine without the namespace. Any thoughts on how this needs to be implemented in Java Class?
 
M Rama
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hemanth H Bhat wrote:Well i don't think we would be able to create a full wsdl file based on a SOAP XML due to the following reasons

Its not necessary that the SOAP XML that you have would contain all the parameters that are supported by the wsdl as many optional parameters/Tags might be missing from the SOAP request or the SOAP response XML

Also the wsdl may support multiple web service operations so each operation will have a separate set of request and response SOAP XML's hence based on a single SOAP XML it would be hard to derive the complete wsdl file



Hi Hemanth,
While I agree with what you say, generating wsdl for that particular SOAP would be handy and if there are multiple SOAPs, it could be manually merged. But I digress.

Any thoughts on my original question?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic