Created
January 2, 2012 00:52
-
-
Save flsafe/1548839 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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><LocationMessage> | |
<DeviceId>80c96863-1e37-4</DeviceId> | |
<UtcDateTime>2011-08-12 05:50:17 UTC</UtcDateTime> | |
<Longitude>31.75497188353929</Longitude> | |
<Latitude>-106.4933316389852</Latitude> | |
<GpsAccuracyInMeters>20</GpsAccuracyInMeters> | |
<AltitudeInMeters>0</AltitudeInMeters> | |
<SpeedInKph>10</SpeedInKph> | |
<Heading>0</Heading> | |
<RawDebugMessage>nothing yet</RawDebugMessage> | |
<DeviceAlerts> | |
</DeviceAlerts> | |
<CustomData> | |
</CustomData> | |
</LocationMessage> | |
</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