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
Contributor
zirconias
Posts: 10
Registered: ‎07-17-2012
My Device: curve 9360

pap message push badmessage-response bad-message-fragment

hi all,

when trying to send a pap message to MDS i get the error

"badmessage-response bad-message-fragment"

 

here what i'm sending to  mds:smileytongue:ort/pap

 

--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="bestest@assa-associates.com"/><quality-of-service delivery-method="unconfirmed"/>
</push-message>
</pap>
--mPsbVQo0a68eIL3OAxm
Content-Type: text/plain
Push-Message-ID: 1342543539246

messageeeeeeeee
--mPsbVQo0a68eIL3OAxm--

 

and this is what i get

 

<?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>

 

please help me

Please use plain text.
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: pap message push badmessage-response bad-message-fragment

It looks like the issue could be with the <address> element. From the docs:

<address> address- value

 

Specifies a single recipient of the push request. You must include the address-value attribute to specify the recipient address. The address-value attribute uses the following format:
WAPPUSH=<recipient>%3A<port>/TYPE=USER@rim.com


where <recipient> is the email address, BlackBerry device PIN, or BlackBerry user group name, and <port> is the port number on which the client-side listener application listens. Note: All non-alphanumeric characters in the device email portion of the address-value attribute, other than "+", "-", ".", or "_" must be URL encoded as hexadecimal values in the PAP control entity. You can include multiple <address> elements in a <pushmessage> element, one for each recipient address you want to specify

 

http://docs.blackberry.com/en/developers/deliverables/12029/Push_applications_for_the_BlackBerry_Ent...

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
Contributor
zirconias
Posts: 10
Registered: ‎07-17-2012
My Device: curve 9360

Re: pap message push badmessage-response bad-message-fragment

i specify the client side application  listner PORT in header  or  for every <adress-value i specify the port ?

Please use plain text.
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: pap message push badmessage-response bad-message-fragment

Yes, otherwise how does the BES know which port to push to?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.