Sample SOAP Messages

Print version
Text Size: Change text to small (default) Change text to medium Change text to large

SOAP Request

<?xml version="1.0"?>
<SOAP-ENV:Envelope
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
  <SOAP-ENV:Body>
    <weather:getWeatherConditions  xmlns:weather="http://buoy.atlanticocean.com/">
      <latitude xsi:type="xsd:int">30</latitude>
      <longitude xsi:type="xsd:int">50</longitude>
    </weather:getWeatherConditions>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

SOAP Response

HTTP/1.1 200 OK
Connection: close
POST /weather HTTP/1.1
Host: bouy.atlanticocean.com
Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml; start="<weather0001.xml@atlanticocean.com>"
Content-Length: XXXX
SOAPAction: http://bouy.atlanticocean.com/weather
Content-Description: This message includes images and video of the lastest weather conditions in the specified latitutde and longitude.

--<weather0001.xml@atlanticocean.com>
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <weather0001.xml@atlanticocean.com>

<?xml version='1.0' ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<weather:conditions id="weather_id" xmlns:weather="http://bouy.atlanticocean.com/weather">
<aerialSnapshot href="cid:30deg50deg.jpg@atlanticocean.com"/>
<satelliteFeed href="cid:30deg50deg.mov@atlanticocean.com"/>
<publication href="cid:Mid-AtlanticOceanRidge.pdf@atlanticocean.com"/>
<latitude>30 degrees</latitude>
<longitude>50 degrees</longitude>
<timestamp>04/12/2005 12:34:05</timestamp>
<temperature>39 degrees</temperature>
<description>It's looking like the perfect storm.</description>
<!-- ... more conditions go here... -->
</weather:conditions>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--<weather0001.xml@atlanticocean.com>MIME_boundary
Content-Type: image/jpg
Content-Transfer-Encoding: base64
Content-ID: <30deg50deg.jpg@atlanticocean.com>

...Base64 encoded JPG image...
--<weather0001.xml@atlanticocean.com>
Content-Type: video/quicktime
Content-Transfer-Encoding: binary
Content-ID: <30deg50deg.mov@atlanticocean.com>

...Raw MOV image..
--<weather0001.xml@atlanticocean.com>
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <Mid-AtlanticOceanRidge.pdf@atlanticocean.com>

...Raw PDF image..
--<weather0001.xml@atlanticocean.com>--



 

WHOI logo

Last updated April 11, 2005
© Woods Hole Oceanographic Institution. All rights reserved