EPrintWebservice


Click here for a complete list of operations.

SendCNOTData

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /dpd-eprintwebservice/eprintwebservice.asmx HTTP/1.1
Host: e-station.cargonet.software
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.cargonet.software/SendCNOTData"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <UserCredentials xmlns="http://www.cargonet.software">
      <userid>string</userid>
      <password>string</password>
    </UserCredentials>
  </soap:Header>
  <soap:Body>
    <SendCNOTData xmlns="http://www.cargonet.software">
      <request>
        <HardwareId>string</HardwareId>
        <Depot>int</Depot>
        <TourNumber>string</TourNumber>
        <TimeStamp>dateTime</TimeStamp>
        <Status>string</Status>
        <Tasks>
          <Task>
            <Type>string</Type>
            <Parcels xsi:nil="true" />
            <ContactName>string</ContactName>
            <Location xsi:nil="true" />
            <NotProcessed>boolean</NotProcessed>
            <Finished>boolean</Finished>
            <CreatedAt>dateTime</CreatedAt>
            <OnPositionAt>dateTime</OnPositionAt>
            <FinishedAt>dateTime</FinishedAt>
            <VisitCounter>int</VisitCounter>
            <TaskId>int</TaskId>
            <IsB2C>boolean</IsB2C>
            <Rendezvous xsi:nil="true" />
            <PhoneCalls xsi:nil="true" />
          </Task>
          <Task>
            <Type>string</Type>
            <Parcels xsi:nil="true" />
            <ContactName>string</ContactName>
            <Location xsi:nil="true" />
            <NotProcessed>boolean</NotProcessed>
            <Finished>boolean</Finished>
            <CreatedAt>dateTime</CreatedAt>
            <OnPositionAt>dateTime</OnPositionAt>
            <FinishedAt>dateTime</FinishedAt>
            <VisitCounter>int</VisitCounter>
            <TaskId>int</TaskId>
            <IsB2C>boolean</IsB2C>
            <Rendezvous xsi:nil="true" />
            <PhoneCalls xsi:nil="true" />
          </Task>
        </Tasks>
        <Locations>
          <Location>
            <TimeStamp>dateTime</TimeStamp>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
          </Location>
          <Location>
            <TimeStamp>dateTime</TimeStamp>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
          </Location>
        </Locations>
        <PhoneCalls>
          <PhoneCall>
            <Number>string</Number>
            <Type>string</Type>
            <DurationSec>int</DurationSec>
            <Date>dateTime</Date>
          </PhoneCall>
          <PhoneCall>
            <Number>string</Number>
            <Type>string</Type>
            <DurationSec>int</DurationSec>
            <Date>dateTime</Date>
          </PhoneCall>
        </PhoneCalls>
      </request>
    </SendCNOTData>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendCNOTDataResponse xmlns="http://www.cargonet.software" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /dpd-eprintwebservice/eprintwebservice.asmx HTTP/1.1
Host: e-station.cargonet.software
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <UserCredentials xmlns="http://www.cargonet.software">
      <userid>string</userid>
      <password>string</password>
    </UserCredentials>
  </soap12:Header>
  <soap12:Body>
    <SendCNOTData xmlns="http://www.cargonet.software">
      <request>
        <HardwareId>string</HardwareId>
        <Depot>int</Depot>
        <TourNumber>string</TourNumber>
        <TimeStamp>dateTime</TimeStamp>
        <Status>string</Status>
        <Tasks>
          <Task>
            <Type>string</Type>
            <Parcels xsi:nil="true" />
            <ContactName>string</ContactName>
            <Location xsi:nil="true" />
            <NotProcessed>boolean</NotProcessed>
            <Finished>boolean</Finished>
            <CreatedAt>dateTime</CreatedAt>
            <OnPositionAt>dateTime</OnPositionAt>
            <FinishedAt>dateTime</FinishedAt>
            <VisitCounter>int</VisitCounter>
            <TaskId>int</TaskId>
            <IsB2C>boolean</IsB2C>
            <Rendezvous xsi:nil="true" />
            <PhoneCalls xsi:nil="true" />
          </Task>
          <Task>
            <Type>string</Type>
            <Parcels xsi:nil="true" />
            <ContactName>string</ContactName>
            <Location xsi:nil="true" />
            <NotProcessed>boolean</NotProcessed>
            <Finished>boolean</Finished>
            <CreatedAt>dateTime</CreatedAt>
            <OnPositionAt>dateTime</OnPositionAt>
            <FinishedAt>dateTime</FinishedAt>
            <VisitCounter>int</VisitCounter>
            <TaskId>int</TaskId>
            <IsB2C>boolean</IsB2C>
            <Rendezvous xsi:nil="true" />
            <PhoneCalls xsi:nil="true" />
          </Task>
        </Tasks>
        <Locations>
          <Location>
            <TimeStamp>dateTime</TimeStamp>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
          </Location>
          <Location>
            <TimeStamp>dateTime</TimeStamp>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
          </Location>
        </Locations>
        <PhoneCalls>
          <PhoneCall>
            <Number>string</Number>
            <Type>string</Type>
            <DurationSec>int</DurationSec>
            <Date>dateTime</Date>
          </PhoneCall>
          <PhoneCall>
            <Number>string</Number>
            <Type>string</Type>
            <DurationSec>int</DurationSec>
            <Date>dateTime</Date>
          </PhoneCall>
        </PhoneCalls>
      </request>
    </SendCNOTData>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendCNOTDataResponse xmlns="http://www.cargonet.software" />
  </soap12:Body>
</soap12:Envelope>