Skip to content

Instantly share code, notes, and snippets.

@flsafe flsafe/gist:1548839
Created Jan 2, 2012

Embed
What would you like to do?
SOAP request: https://gateway.cygnustrack.com/Gateway.asmx
SOAPAction: "http://YourDomainName.com/PostDeviceMessage", Content-Type: text/xml;charset=UTF-8, Content-Length: 1013
<?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://YourDomainName.com/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><PostDeviceMessage><apiKey>c7e91427-0bbc-47a0-be99-14f4a1d161f1</apiKey><xmlMessage>&lt;LocationMessage&gt;
&lt;DeviceId&gt;80c96863-1e37-4&lt;/DeviceId&gt;
&lt;UtcDateTime&gt;2011-08-12 05:50:17 UTC&lt;/UtcDateTime&gt;
&lt;Longitude&gt;31.75497188353929&lt;/Longitude&gt;
&lt;Latitude&gt;-106.4933316389852&lt;/Latitude&gt;
&lt;GpsAccuracyInMeters&gt;20&lt;/GpsAccuracyInMeters&gt;
&lt;AltitudeInMeters&gt;0&lt;/AltitudeInMeters&gt;
&lt;SpeedInKph&gt;10&lt;/SpeedInKph&gt;
&lt;Heading&gt;0&lt;/Heading&gt;
&lt;RawDebugMessage&gt;nothing yet&lt;/RawDebugMessage&gt;
&lt;DeviceAlerts&gt;
&lt;/DeviceAlerts&gt;
&lt;CustomData&gt;
&lt;/CustomData&gt;
&lt;/LocationMessage&gt;
</xmlMessage></PostDeviceMessage></env:Body></env:Envelope>
HTTPI executes HTTP POST using the net_http adapter
SOAP response (status 200):
<?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:Body><PostDeviceMessageResponse xmlns="http://YourDomainName.com/"><PostDeviceMessageResult>Error|Value cannot be null.
Parameter name: s</PostDeviceMessageResult></PostDeviceMessageResponse></soap:Body></soap:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.