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"?>
    <weather:getWeatherConditions  xmlns:weather="">
      <latitude xsi:type="xsd:int">30</latitude>
      <longitude xsi:type="xsd:int">50</longitude>

SOAP Response

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

Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <>

<?xml version='1.0' ?>
<weather:conditions id="weather_id" xmlns:weather="">
<aerialSnapshot href=""/>
<satelliteFeed href=""/>
<publication href=""/>
<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... -->

Content-Type: image/jpg
Content-Transfer-Encoding: base64
Content-ID: <>

...Base64 encoded JPG image...
Content-Type: video/quicktime
Content-Transfer-Encoding: binary
Content-ID: <>

...Raw MOV image..
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <>

...Raw PDF image..


WHOI logo

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