×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    Problem with WAP push message and PPG

    My WAP push messages to the real Push Proxy Gateway doesn't work.

    Here is my push message with headers, which I send to PPG:

    ***********************************
    POST /PGW HTTP/1.0
    Host: 123.123.123.123:5080
    Content-Length: 678
    Content-Type: multipart/related; boundary=abcd1234wxyz9876

    --abcd1234wxyz9876
    Content-Type: application/xml
    <?xml version="1.0"?>
    <!DOCTYPE pap PUPLIC "-//WAPFORUM//DTD PAP 1.0//EN"
    "http://www.wapforum.org/DTD/pap_1.0.dtd">

    <pap>
    <push-message>
    <address address-value="WAPPUSH=+358447959999/TYPE=PLMN@ppg.nokia.com"/>
    </push-message>
    </pap>

    --abcd1234wxyz9876
    Content-Type: text/vnd.wap.si
    <?xml version="1.0"?>
    <!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
    "http://www.wapforum.org/DTD/si.dtd">

    <si>
    <indication
    href="http://www.somedomain.com/test/helloworld.jad">
    Test message!
    </indication>
    </si>

    --abcd1234wxyz9876--
    **********************************

    PPG responses to my message:

    **********************************
    HTTP/1.1 202 Unknown reason
    Server: Netscape-Enterprise/4.1
    Date: Tue, 11 Mar 2003 22:40:01 GMT
    Content-type: application/xml
    Content-length: 301
    Connection: close

    <?xml version="1.0"?>
    <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
    "http://www.wapforum.org/DTD/pap_1.0.dtd">
    <pap><badmessage-response code="2000" desc="PAP Syntax error: The PAP control document violates the XML syntax: org.xml.sax.SAXParseException: Value must be quoted."/></pap>
    **********************************

    Does anyone have idea where the proplem could be. I have read many samples of how push messages should look like, but nothing is helping me with this problem.

    - Arto

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    47

    RE: Problem with WAP push message and PPG

    Hi,

    By quikly looking I cannot see anything wrong with your PAP message. However, XML specification is very strict and therefore there might be problems that cannot be seen from the plain text. What I mean is that for example you need to have proper empty lines between boundaries and those have to be done using a carriage return (0d) and a line feed (0a) character. Using only line feed characters is not sufficient.

    So you need to check the hex dump presentation of your message as well to be sure that it is in line with the specifications. In this case clearly there is something in your message that is not compliant with XML specifications.

    Hopefully this helps you.

    Best Regards,
    Jori / Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×