Now that you have your Web service provider running with all of its resources active, you are ready to send a SOAP request to run the Web service. You can do this using any SOAP requester tool.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cws="http://tempuri.org/reverse"> <soapenv:Header/> <soapenv:Body> <cws:reverseRequest> <cws:InputStrings> <cws:myString>dlroW olleH</cws:myString> <cws:myString>esaelP eM esreveR</cws:myString> </cws:InputStrings> </cws:reverseRequest> </soapenv:Body> </soapenv:Envelope>
http://localhost:5482/cwsDemo/reverseMe
You should receive the following SOAP response:
<SOAP-ENV:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cws="http://tempuri.org/reverse" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <reverseResponse xmlns="http://tempuri.org/reverse"> <OutputStrings> <reversedString>Hello World</reversedString> <reversedString>Reverse Me Please</reversedString> </OutputStrings> </reverseResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
This concludes the tutorial.