|
Here's a sample SOAP request using the doc/lit form of the web service (in this case captured from the JibxSoap version of the application, with indenting enabled): <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<qk:query xmlns:qk="http://www.sosnoski.com/quakes">
<qk:min-date>2001-07-25T19:58:24.918</qk:min-date>
<qk:max-date>2001-09-01T16:00:59.4</qk:max-date>
<qk:min-long>134.90671</qk:min-long>
<qk:max-long>178.3323</qk:max-long>
<qk:min-lat>-47.337864</qk:min-lat>
<qk:max-lat>-18.00817</qk:max-lat>
</qk:query>
</SOAP:Body>
</SOAP:Envelope>
Here's the corresponding SOAP response: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<qk:results xmlns:qk="http://www.sosnoski.com/quakes" count="1">
<qk:result-set>
<qk:area-name>Vanuatu Islands</qk:area-name>
<qk:regions count="1">
<qk:regions>
<qk:region ident="rgn189" index="189">LOYALTY ISLANDS REGION</qk:region>
</qk:regions>
</qk:regions>
<qk:quakes count="3">
<qk:quakes>
<qk:quake time="2001-08-10T15:05:12" millis="1300" latitude="-22.217" longitude="170.571" depth="10.0" magnitude="5.2" method="MB" region="rgn189"/>
<qk:quake time="2001-08-10T20:02:50" millis="4500" latitude="-22.262" longitude="170.506" depth="10.0" magnitude="5.3" method="MS" region="rgn189"/>
<qk:quake time="2001-08-30T08:12:27" millis="2400" latitude="-22.928" longitude="169.787" depth="10.0" magnitude="5.6" method="MB" region="rgn189"/>
</qk:quakes>
</qk:quakes>
</qk:result-set>
</qk:results>
</SOAP:Body>
</SOAP:Envelope>
|