Java Reference
In-Depth Information
Server: Microsoft-IIS/6.0
Date: Mon, 07 Jul 2008 00:33:18 GMT
X-aspnet-version: 1.1.4322
<?xml version="1.0" encoding="utf-8"?>
<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:Header>
<ResponseInfo xmlns="http://www.strikeiron.com">
<ResponseCode>0</ResponseCode>
<Response>Success</Response>
</ResponseInfo>
<SubscriptionInfo xmlns="http://ws.strikeiron.com">
<LicenseStatusCode>0</LicenseStatusCode>
<LicenseStatus>Valid license key</LicenseStatus>
<LicenseActionCode>0</LicenseActionCode>
<LicenseAction>Decremented hit count</LicenseAction>
<RemainingHits>24</RemainingHits>
<Amount>0</Amount>
</SubscriptionInfo>
</soap:Header>
<soap:Body>
<AddressToAddressDistanceResponse xmlns="http://www.strikeiron.com">
<AddressToAddressDistanceResult>
1.0286261980640472
</AddressToAddressDistanceResult>
</AddressToAddressDistanceResponse>
</soap:Body>
</soap:Envelope>--------------------
Distance: 1.0286261980640472
This response message illustrates a few things. First, it indicates that the service is implemen-
ted in ASP.NET in the HTTP header, and you also see its version in an extension header. You
see that there is considerable subscription information in the SOAP headers, and finally you
see that the SOAP body contains the elements you were expecting: in particular, you got the
actual distance in miles between the restaurant and the hotel you supplied.
If you don't want to do this work directly in the client code you're writing, you can also put
it in a registered handler so that the headers are added just before the message is sent over the
wire.
Search WWH ::




Custom Search