01-03-2013 01:38 AM
Hi,
Few days ago my implentation of Push was working fine, but now I started receiving error on server. The response returned is shown below:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Pushdata Service</title> <body bgcolor="white" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"> <form enctype="application/x-www-form-urlencoded" method="get"> <!-- Header --> <!-- static error header library --> <br clear="none"/> <!-- Errorcode --> <!-- dynamic @[errorcode] token --> <font color="#777777" size="1" style="verdana"> Error </font> <br clear="none"/> <br clear="none"/> <!-- Errorbody --> <!-- dynamic @[errorbody] token --> <font color="#777777" size="1" style="verdana"> The content you have requested is not available</font> <br clear="none"/> <!-- Error message --> <!-- dynamic @[errormsg] token --> <br clear="none"/> <font color="#777777" size="1" style="verdana">PD_pushRequest has been taken out of service: null </font> <br clear="none"/> <br clear="none"/> <!-- Footer --> !-- static error footer library --> <br clear="none"/> </form> </body> </html>
We are using evaluation account. the url is: https://pushapi.eval.blackberry.com/mss/PD_pushReq
01-03-2013 06:29 AM
Hi,
BB push server url for evaluation account https://pushapi.eval.blackberry.com/mss/PD_pushReq
If you miss the request parameters like:
- auth header (AppID
assword)
- content to be pushed to BlackBerry device
in this cases BB push server replies with 'unexpected' html page. Where it specifies that 'PD_pushRequest has been taken out of service' followed by specific error message.
i.e. PD_pushRequest has been taken out of service: null
So do check the requst message body before being sent to BB push server.
Actually BB push server is expected to replies with the same format i.e. PAP same as it replies if the push request message is correct. Because developer normally used to set xml parser for PAP format and in such case of html reposnse it won't get parsed correctly.