Example XML: Receiving the subscription query response

There are three subscription statuses that may be returned after submitting the query:
  • active: The subscriber is active on the PPG and is able to receive pushes.
  • suspended: The subscriber's account has been suspended by the Content Provider and is therefore unable to receive pushes.
  • unsubscribed: The subscriber is inactive on the PPG and cannot receive pushes.

This is an example of a response to a supplied PIN or token request.

<?xml version="1.0"?>
 <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN"
"http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<bpds version="1.0">
    <subscriptionquery-response pushservice-id="32-C9ViiTf34OTf7yigCHZZ">
        <subscriptionquery-result
            event-time="2011-01-14T14:11:00Z"
            code="xxxx"
            desc="XXXXXXXXXXXXXXX"/>
        <subscriptionquery-detail
            status="active"
            event-time="2011-01-01T00:00:00Z">
            <address address-value="111111111"/>
        </subscriptionquery-detail>
        <subscriptionquery-detail
            status="suspended"
            event-time="2009-08-15T12:54:00Z">
            <address address-value="222222222"/>
        </subscriptionquery-detail>
        <subscriptionquery-detail
            status="unsubscribed"
            event-time="2010-01-01T17:52:00Z">
            <address address-value="333333333"/>
        </subscriptionquery-detail>
        <subscriptionquery-detail
            status="unknown"
            event-time="2011-01-14T14:11:00Z">
            <address address-value="444444444"/>
        </subscriptionquery-detail>
    </subscriptionquery-response>
</bpds>


Was this information helpful? Send us your comments.