Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
Highlighted
New Member
Posts: 1
Registered: ‎12-06-2013
My Device: Tourch
My Carrier: Vodaphone

HTTP 202 - badmessage-response bad-message-fragment

Hi,

 

I send the following PAP request:

 

POST http://xxx.xxx.com:8080/pap HTTP/1.1
Host: xxx.xxx.com:8080
Content-Type: Multipart/Related;
boundary=mPsbVQo0a68eIL3OAxm;
type="application/xml"

--mPsbVQo0a68eIL3OAxm
Content-Type: application/xml
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.wapforum.org/DTD/pap_2.0.dtd">
<pap>
<push-message push-id="1342543539246"><address address-value="WAPPUSH=dev%40xxx.com%3A911/TYPE=USER@rim.com"/><quality-of-service delivery-method="unconfirmed"/>
</push-message>
</pap>
--mPsbVQo0a68eIL3OAxm
Content-Type: text/plain
Push-Message-ID: 1342543539246

message
--mPsbVQo0a68eIL3OAxm--

 

and recieve:

 

HTTP/1.1 202 Accepted
Server: Apache-Coyote/1.1
Via: MDS_5.0.5.15
Content-Type: application/xml
Content-Length: 462
Date: Fri, 06 Dec 2013 12:28:56 GMT

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.0//EN" "http://www.wapforum.org/DTD/pap_2.0.dtd" [<?wap-pap-ver supported-versions="2.0"?>]>
<pap product-name="Research In Motion Ltd. Mobile Data Server Connection Service"><badmessage-response bad-message-fragment="--mPsbVQo0a68eIL3OAxm
Content-Type: application/xml
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;!DOCTYPE pap PUBLIC &quot;-" code="2000"/></pap>

 

Any Idea?