09-20-2012 03:55 PM
I try to do Supplying a status to request subscribed addresses
RUL is:
https://pushapi.na.blackberry.com/mss/PD_cpSubQuer
pap xml request message is:
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN"
"http://www.openmobilealliance.org/tech/DTD/pap_2.1
<bpds version="1.0">
<subscriptionquery-message pushservice-id="32-C9ViiTf34OTf7yigCHZZ">
<status status-value="active"/>
</subscriptionquery-message>
</bpds>
method is post,
I got respone is:
<bpds version="1.0"><badmessage-response event-time="2012-09-20T18:04:23Z" code="22000" desc="Not understood due to malformed syntax."/></bpds>
I can not find where is format invalid
Solved! Go to Solution.
09-21-2012 09:17 AM
Try removing the !DOCTYPE element so instead HTTP post this:
<bpds version="1.0">
<subscriptionquery-message pushservice-id="<your push service id>">
<status status-value="active"/>
</subscriptionquery-message>
</bpds>
09-21-2012 09:56 AM
09-25-2012 08:59 AM
I am not sure I understand your question. You should make this calll from your server-side push initiator application.
09-25-2012 09:52 AM
09-25-2012 10:15 AM
09-25-2012 11:08 AM
Can you try and set your content-type to be: "application/xml" only and see what happens?
09-25-2012 11:22 AM
09-25-2012 11:26 AM
You must use https, http will not work. I don't think you got it quite right change:
Request.ContentType = "multipart/related; type=application/xml"; to just "application/xml" and comment out
// Data.AppendLine("Content-Type: application/xml; charset=utf-8");
09-25-2012 11:40 AM