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

Java Development

Reply
Developer
BeMor
Posts: 171
Registered: ‎08-20-2008
My Device: Not Specified

Cancel of PAP Push request not working

I am currently posting push requests to a BES 5.0.2 server. Can create pushes okay however when I go to cancel them I either get a 3000 or a 2008 as a return code.

 

Here is what I am posting to the server to cancel the request

 

 

<?xml version="1.0"?>
<!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,1.*"?>]>
<pap>
    <cancel-message push-id="pushID:fh2241@uk.example.com">
        <address address-value="WAPPUSH=2100000A%3A30320/TYPE=USER@rim.net"/>
    </cancel-message>
</pap>

 

 

And here is the reply.

 

 

<?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"><cancel-response push-id="pushID:fh2241@uk.example.com"><cancel-result code="3000"><address address-value="WAPPUSH=2100000A%3A30320/TYPE=USER@rim.net"/></cancel-result></cancel-response></pap>

 

 

A query request using a similar format works fine. Nothing extra in the MDAT log of the server. Very strange.

 

Developer
mtatro
Posts: 105
Registered: ‎06-23-2010
My Device: 9000

Re: Cancel of PAP Push request not working

I would suggest posting this in the PUSH group:

 

http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/bd-p/Applications_using_Push_Tech...

 

 

-matt

Press Kudos if this helped - ;-)
Developer
BeMor
Posts: 171
Registered: ‎08-20-2008
My Device: Not Specified

Re: Cancel of PAP Push request not working

Thanks Matt,

 

I thought that was for BIS Push only but I bet I'm wrong. I'll give it ago.

 

Cheers