/
Binary SMS - XML Examples

Binary SMS - XML Examples

Sending raw data requires the user account to have the RAW_PDU User Feature. The payload needs to be HEX encoded accordingly to use this feature.

WAP Push

<!DOCTYPE DOCUMENT SYSTEM "http://localhost:8080/gateway/msg_core.dtd">
<DOCUMENT mode="NORMAL">

<SENDER password="xxxx">
  <ADDRESS type="EMAIL" role="FROM" value="binary@sms" />
</SENDER>

<MESSAGE>
  <ADDRESS type="SMS" role="TO" value="61438795980" status="INITIATOR" priority="1" />
  <BODY type="DATA">
    <PAYLOAD type="PDU" encoding="HEX" dcs="04" esm="64">0605040B8423F0B00601AE02056A0045C60C0366756E636C75622E77617061752E73616D73756E676D6F62696C652E636F6D2F73616D73756E672F776D6C2F64622E6173703F69643D31313532383926677569643D3330333346354441303030313031313241433041424
6313300010353616D73756E672046756E20436C7562000101</PAYLOAD>
  </BODY>

</MESSAGE>
</DOCUMENT>

Normal Text

For normal messages that are just plain hex coded strings, set the esm="0"

<!DOCTYPE DOCUMENT SYSTEM "http://localhost:8080/gateway/msg_core.dtd">
<DOCUMENT mode="NORMAL">

<SENDER password="xxxx">
  <ADDRESS type="EMAIL" role="FROM" value="binary@sms" />
</SENDER>

<MESSAGE>
  <ADDRESS type="SMS" role="TO" value="61438795980" status="INITIATOR" priority="1" />
  <BODY type="DATA">
    <PAYLOAD type="PDU" encoding="HEX" dcs="04" esm="0">68656c6c6f20776f726c64</PAYLOAD>
  </BODY>

</MESSAGE>
</DOCUMENT>