Code sample: Submitting a PAP status-query request
The following code sample shows an example of the status-query request that is sent to the BlackBerry MDS Connection Service. The PAP status-query message control entity requests the BlackBerry MDS Connection Service to return the status of the push request (push- id="_done123@.rim.com13522321639352") for one BlackBerry user group (Marketing). Only one status is returned for the entire group. If all members have received the data except for one, the message state is returned as pending.
Special characters specified in the value of the address-value attribute are URL encoded, as specified in the WAP PAP 2.0 specification.
<?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]> <pap> <statusquery-message push- id="_done123@.rim.com13522321631714"> <address address-value="WAPPUSH=%24Marketing/TYPE=USER@rim.com"/> </statusquery-message> </pap>
Was this information helpful? Send us your comments.