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
Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All
Accepted Solution

Anyone tried the new subscriptionquery-message API that was just released?

I'm sending this message to the ppg (the same url as i'm sending push messages to) in the eval system:

 

 

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<bpds version="1.0">
  <subscriptionquery-message pushservice-id="XXX-XXXXXXXXX">
    <status status-value="active" />
  </subscriptionquery-message>
</bpds>

 

 

 

 

this is the message i'm sending to the ppg (https://pushapi.eval.blackberry.com/mss/PD_pushRequest)

and for some reason i get the following error:

 

 

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"><pap><badmessage-response code="2000" desc="Unable to parse mime message due to malformed syntax." bad-message-fragment="Unable to parse mime message due to malformed syntax."/></pap>

 

i have created the message using the sample code from the blackberry site:
 
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" 
"http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<bpds version="1.0">
    <subscriptionquery-message pushservice-id="32-C9ViiWf2jOTc7yiJCHZZ">
        <status status-value="active"/>
    </subscriptionquery-message>
</bpds>

 

anyone seeing the difference from my code to the sample code? did anyone succeeded in doing this kind of query in the eval or production envoirments?

 

Thanks,

Itay Levin

Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All

Re: Anyone tried the new subscriptionquery-message API that was just released?

it turns out that the URL was not correct - this query should be send to this url:
"https://pushapi.eval.blackberry.com/mss/PD_cpSubQuery"
when using the Eval system.