Receive delivery report request XML

Modified on Wed, 01 Dec 2010 09:10 by tormar — Categorized as: XML API

If the client account has been enabled to forward delivery reports to the client, then the client may receive the delivery reports pretty much in the same way as receiving incoming messages. As with receiving messages, you will need to supply the Gateway with an IP address/port number or URL at your end. You will need to listen on this port for incoming TCP connections or HTTP POST from the Gateway.

The Gateway will deliver an XML document built on the following DTD:

<!-- PSWinCom DTD SMS Delivery Report Request-->
<!ELEMENT ID (#PCDATA)>
<!ELEMENT REF (#PCDATA)>
<!ELEMENT RCV (#PCDATA)>
<!ELEMENT STATE (#PCDATA)>
<!ELEMENT DELIVERYTIME (#PCDATA)>
<!ELEMENT MSG (ID, REF, RCV, STATE, DELIVERYTIME?)>
<!ELEMENT MSGLST (MSG+)>

Please note that here’s no login information wrapped in a session element, but only a list of one or more message elements.

A sample XML delivery report request from the Gateway may be formatted as follows:

<?xml version="1.0"?>
<!DOCTYPE MSGLST SYSTEM "pswincom_report_request.dtd">
<MSGLST>
  <MSG>
    <ID>1</ID>
    <REF>984342374</REF>
    <RCV>4512345678</RCV>
    <STATE>DELIVRD</STATE>
    <DELIVERYTIME>2006.02.23 15:23:23</DELIVERYTIME>
  </MSG>
</MSGLST>