<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.w3schools.com/webservices/"> <soapenv:Header/> <soapenv:Body> <web:FahrenheitToCelsius> <!--Optional:--> <web:Fahrenheit>?</web:Fahrenheit> </web:FahrenheitToCelsius> </soapenv:Body> </soapenv:Envelope>
The prototype request displays the question mark (?) character anywhere input values are required to create a valid request. For this tutorial, you must supply a numeric value for Fahrenheit. The web service uses this value to compute the Celsius equivalent to return.
SoapUI sends the request to the web service and displays the result in another window, which contains the result of 100 as the Fahrenheit value of 212 converted to Celsius:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <FahrenheitToCelsiusResponse xmlns="http://www.w3schools.com/webservices/"> <FahrenheitToCelsiusResult>100</FahrenheitToCelsiusResult> </FahrenheitToCelsiusResponse> </soap:Body>
You now have prototypes for both the request and response and can create XSLT style sheets to use with XML extensions