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:loan="http://www.loanPaym.com"> <soapenv:Header/> <soapenv:Body> <loan:LoanOperation> <loan:LOANINP> <loan:principal>50000</loan:principal> <loan:loanterm>180</loan:loanterm> <loan:rate>5.56</loan:rate> </loan:LOANINP> </loan:LoanOperation> </soapenv:Body> </soapenv:Envelope>
http://localhost:5482/cics/services/loanPaym
You should receive the following SOAP response:
<SOAP-ENV:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:loan="http://www.loanPaym.com" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <LoanOperationResponse xmlns="http://www.loanPaym.com"> <LOANOUT> <monthlyPayment>$410.13</monthlyPayment> </LOANOUT> </LoanOperationResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
This concludes the tutorial.