Free Web Services - Herong's Tutorial Examples - Version 2.01, by Dr. Herong Yang
GetMortgagePayment - Response Message Sample
This section provides a request message sample of GetMortgagePayment Web service.
The response message of GetMortgagePayment Web service contains the mortgage monthly payment with and without tax and insurance.
After running the "Request 1" sample in the previous tutorial, look at the response window. You will see the response message of "GetMortgagePayment" in SOAP 1.2 format returned with monthly mortgage payment ammount:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetMortgagePaymentResponse xmlns="http://www.webserviceX.NET/"> <GetMortgagePaymentResult> <MonthlyPrincipalAndInterest>1073.64</MonthlyPrincipalAndInterest> <MonthlyTax>0</MonthlyTax> <MonthlyInsurance>0</MonthlyInsurance> <TotalPayment>1073.64</TotalPayment> </GetMortgagePaymentResult> </GetMortgagePaymentResponse> </soap:Body> </soap:Envelope>
The response tells us that you would pay $1,073.64 a month for a $200,000.00 mortgage loan for 30 years at a 5% interest rate.
Click the "Raw" vertical tab. You will see the entire HTTP response including header lines:
HTTP/1.1 200 OK Cache-Control: private, max-age=0 Content-Length: 574 Content-Type: application/soap+xml; charset=utf-8 Server: Microsoft-IIS/7.0 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Sun, 1 Feb 2015 19:30:50 GMT (response XML...)
Last update: 2015.
Table of Contents