Creating a PAP push message
A PAP control entity is an XML document that contains the control information that the Push Access Protocol requires. When a PAP control entity is included in a multipart message in a push request, it must be the first entity in the message.
All PAP control entities have three common document elements: the xml version declaration, the DOCTYPE declaration, and a root <pap> element. Because the PPG supports only WAP PAP version 2.1, the DOCTYPE declaration that is included in all PAP control entities must specify the supported version information.
The following sample shows you how to format a PAP control entity to send to the PPG:
<?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> <-- Message-specific elements go here --> </pap>
For more information about PAP control entities, see the Push Access Protocol specification at http://www.openmobilealliance.org.
Last modified: 2015-07-24