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
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

the Access forbidden error for BIS

I got the Access forbidden error too, when I open the https://pushapi.eval.blackberry.com/mss/CP_login .

I got the Access forbidden error too, when I connect with https://pushapi.eval.blackberry.com/mss/PD_pushRequest.

Who can tell me what kind of reasons that cause this problem?

Please use plain text.
Developer
Bullety
Posts: 138
Registered: ‎08-02-2009
My Device: Z10
My Carrier: T-Mobile

Re: the Access forbidden error for BIS

We did also talk about this in the PM.

 

You must call these URL's from your IP you did submit with the push request form.

 

Only calls from this specific IP are allowed.

 

If you want to debug your application from another computer, set up a proxy on the server (with the correct IP) and let your application send the push requests over this proxy.

 

I am doing this and it works like a charm.

 

 

Best regards,

 

Bullety

Please use plain text.
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

Re: the Access forbidden error for BIS

I want to know how to use the https://pushapi.eval.blackberry.com/mss/CP_login ?

Please use plain text.
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

Re: the Access forbidden error for BIS

Do I send some request to https://pushapi.eval.blackberry.com/mss/CP_login before I send the request to https://pushapi.eval.blackberry.com/mss/PD_pushRequest. There are not any server setting problem for my server, because I can do device register very well and the device information had been stored in my MySQL database. On the other hand, I can run Subscriber Query and get the Subscriber Query result at my server https://xxx.yyy.com/debug-portal/subscriber_query.do.

Please use plain text.
Developer
Bullety
Posts: 138
Registered: ‎08-02-2009
My Device: Z10
My Carrier: T-Mobile

Re: the Access forbidden error for BIS

No, the CP Login is only for you to view in the browser.

 

You do not need to login there, simply authenticate yourself via the HttpAuthentication when sending Push requests.

Please use plain text.
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

Re: the Access forbidden error for BIS

Hi Bullety,

 

Now I can access into RIM Push Server. I got the return of response as follow after I sent the PAP Push to the RIM Push Server:

<?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="Invalid or missing attribute deliver-before-timestamp" bad-message-fragment="Invalid or missing attribute deliver-before-timestamp"/>
</pap>

 

I think the format of PAP push that I sent to the RIM Push Server.

Do you have some sugestion for it?

Please use plain text.
New Developer
JGao12345678
Posts: 46
Registered: ‎07-05-2010
My Device: 9630
My Carrier: Telus

Re: the Access forbidden error for BIS

Hi Bullety,

My device can receive the Push Message now.

Here is the response got from RIM Push Service.

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
<pap>
<push-response push-id="129237593719514441" sender-address="http://pushapi.eval.blackberry.com/mss/PD_pushRequest" sender-name="RIM Push-Data Service" reply-time="2010-07-16T13:10:43Z">
<response-result code="1001" desc="The request has been accepted for processing.">
</response-result>
</push-response>
</pap>

 Thank you for your help.

Please use plain text.
Developer
Bullety
Posts: 138
Registered: ‎08-02-2009
My Device: Z10
My Carrier: T-Mobile

Re: the Access forbidden error for BIS

Weeehaa :smileyhappy:

 

The error you wrote before was that the deliver-before-timestamp line was missing, but you fixed it already, I think.

 

So now everything is running fine?

Great to hear :smileyhappy:

 

Enjoy your pushes,

 

 

Best regards,

Bullety

Please use plain text.
New Developer
Jirawat
Posts: 9
Registered: ‎07-20-2010
My Device: Not Specified

Re: the Access forbidden error for BIS

Hi Bullety,

My error is:

<badmessage-response code="2000" desc="Received content type is not 'application/xml'" bad-message-fragment="Received content type is not 'application/xml'"/>

 

Do you have any suggestion for this error?

Please use plain text.
Developer
Bullety
Posts: 138
Registered: ‎08-02-2009
My Device: Z10
My Carrier: T-Mobile

Re: the Access forbidden error for BIS

It seems that your pap message is not in a valid format any more.

 

Could you please doublecheck if every tag you open is also closed correctly?

 

If you need further help, could you please post your pap message you transmit (the string) so that I can check it?

Please use plain text.