Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating Request/Response XML from a WSDL

Is there a way to generate Request & Response XML formats from just a WSDL file - if the webservice is not live right now.

SoapUI doesn't give me the response unless it contacts the Webservice with a request. Is there any other tool which can do this?

I should assume this information is available - because without it - client stub frameworks like Axis/JAXWS etc won't be able to generate stubs for generating the requesting and then interpreting the response.

like image 289
user93353 Avatar asked Mar 10 '16 05:03

user93353


People also ask

How do I get a response from a SOAP request?

HTTP ResponseClick the 'RAW' Tab in SOAP-UI Response Window to understand how the response is sent via HTTP. After processing the request, the http response code (200) is shown which means it is a success. The web-server has processed it successfully.


2 Answers

I use SOAPUI 5.3.0, it has an option for creating requests/responses (also using WSDL), you can even create a mock service which will respond when you send request. Procedure is as follows:

  1. Right click on your project and select New Mock Service option which will create mock service.
  2. Right click on mock service and select New Mock Operation option which will create response which you can use as template.

EDIT #1:

Check out the SoapUI link for the latest version. There is a Pro version as well as the free open source version.

like image 33
Abhishek Chaturvedi Avatar answered Sep 18 '22 05:09

Abhishek Chaturvedi


Try this online tool: https://www.wsdl-analyzer.com. It appears to be free and does a lot more than just generate XML for requests and response.

There is also this: https://www.oxygenxml.com/xml_editor/wsdl_soap_analyzer.html, which can be downloaded, but not free.

like image 90
Siderite Zackwehdex Avatar answered Sep 18 '22 05:09

Siderite Zackwehdex