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.
This question is related to
xml
web-services
wsdl
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:
EDIT #1:
Check out the SoapUI link for the latest version. There is a Pro version as well as the free open source version.
Parasoft is a tool which can do this. I've done this very thing using this tool in my past work place. You can generate a request in Parasoft SOATest and get a response in Parasoft Virtualize. It does cost though. However Parasoft Virtualize now has a free community edition from which you can generate response messages from a WSDL. You can download from parasoft community edition
Since you are saying the webservice is not live right now, you can do it by creating mockservices which will create the sample response format.
The easiest way is to use this chrome extension link, happy web service requesting
Doing this yourself will give you insight into how a WSDL is structured and how it gets your job done. It is a good learning opportunity. This can be done using soapUI, if you only have the URL of the WSDL. (I'm using soapUI 5.2.1) If you actually have the complete WSDL as a file available to you, you don't even need soapUI. The title of the question says "Request & Response XML" while the question body says "Request & Response XML formats" which I interpret as the schema of the request and response. At any rate, the following will give you the schema which you can use on XSD2XML to generate sample XML.
<s:element name="GetWeather">
and ends with </s:element>
.
<?xml version="1.0" encoding="UTF-8"?>
<s:schema xmlns:s="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
</s:schema>
You can try above procedure out using the WSDL at http://www.webservicex.com/globalweather.asmx?wsdl
Source: Stackoverflow.com