Send message push from Server

I'm looking to integrate the push RIM with our server service.

I found the code that sends an HTTP POST message to a MDS connection service.  It's simple I can add via our java servlets.

My question is that I have a MDS connection service installed on my server or RIM provides a server url, we can use for our push messages.

We are Member of isv blackberry.

Thank you.

as a member of the alliance, you can inquire about the push to bis. Ask your representative to the alliance on this issue.

for bes-push, you need an own bes + mds.

Tags: BlackBerry Developers

Similar Questions

  • Unable to send message push on server

    Greetings,

    I managed get record (PIN) for my device id, but I stuck on the development server side, I hope someone could help me

    I've followed these 3 references:

    1. http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Problem-with-SEND-Push-Notificati...

    2. http://supportforums.blackberry.com/t5/Android-Runtime-Development/Not-receiving-push-notification-o...

    3. http://stackoverflow.com/questions/8472331/server-side-problemt-php-push-message-to-blackberry

    But I do not get the result as expected, instead, I always have ERROR CODE 2000 like this:

    Our PUSH-ID: 1401179949.8267
    
    An error has occured
    Error CODE: 2000
    Error DESC: 2000
    
    string(217) " "
    

    The string (217) "" contains:

    
        
    
    

    The code I am using:

            $appid = '4746-6135ee38Dm11ro8094c98i7900xxxxxxxxx';
            $password = 'xxxxxxxx';
            $boundary = "mPsbVQo0a68eIL3OAxnm";
    
            $deliverbefore = gmdate('Y-m-d\TH:i:s\Z', strtotime('+2 minutes'));
            //An array of address must be in PIN format or "push_all"
            $addresses = '';
            foreach ($registatoin_ids as $value) {
                $addresses .= '
    '; } // Open connection $ch = curl_init(); $err = false; $messageid = microtime(true); $data = '--' . $boundary . "\r\n" . 'Content-Type: application/xml; charset=UTF-8' . "\r\n\r\n" . ' http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"> ' . $addresses . ' ' . "\r\n" . '--' . $boundary . "\r\n" . // 'Content-Encoding: binary' . "\r\n" . 'Content-Type: text/plain' . "\r\n" . 'Push-Message-ID: ' . $messageid . "\r\n\r\n" . '{ "key":"value", "key2":"value2" }'. "\r\n" . '--' . $boundary . '--' . "\n\r"; $url = 'https://cp4746.pushapi.eval.blackberry.com/mss/PD_pushRequest'; // Set the url, number of POST vars, POST data curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_USERAGENT, "SAA push application"); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD, $appid . ':' . $password); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: multipart/related; boundary=" . $boundary . "; type=application/xml", "Accept: text/html", "Connection: keep-alive")); // grab URL and pass it to the browser $xmldata = curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); //Start parsing response into XML data that we can read and output $p = xml_parser_create(); xml_parse_into_struct($p, $xmldata, $vals); $errorcode = xml_get_error_code($p); if ($errorcode > 0) { $err = true; } xml_parser_free($p); echo 'Our PUSH-ID: '.$messageid . "
    \n"; if (!$err && $vals[1]['tag'] == 'PUSH-RESPONSE') { echo 'PUSH-ID: ' . $vals[1]['attributes']['PUSH-ID'] . "
    \n"; echo 'REPLY-TIME: ' . $vals[1]['attributes']['REPLY-TIME'] . "
    \n"; echo 'Response CODE: ' . $vals[2]['attributes']['CODE'] . "
    \n"; echo 'Response DESC: ' . $vals[2]['attributes']['DESC'] . "
    \n"; } elseif ($err) { echo '

    An XML parser error has occured

    ' . "\n"; echo '
    ' . xml_error_string($errorcode) ."
    \n » ; echo '

    Response

    ' . "\n"; echo '
    ' . $xmldata . '
    ' . "\n"; } else {echo '}

    An error has occurred

    ' . "\n"; echo ' fault CODE: '. $vals [1] ['attributes'] ['CODE']. "
    \n » ; echo ' error DESC: '. $vals [1] ['attributes'] ['DESC']. "
    \n » ; echo '
    ' . $xmldata . '
    ' . "\n"; var_dump ($XMLDATA); } var_dump ($vals); Return $xmldata;

    where record id, I get is already a correct form without the prefix, which only hurts?

    I finally found the right answer for me, from here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-push-development/BB-bis-push-PHP-Server-works-on-p...

    Marcboo thanks for the reply.

    And then I change the code below

    stripslashes($message)
    

    TO:

    json_encode($message)
    

    Complete code below, with the necessary adaptations:

    ';
                }
    
                // create a new cURL resource
                $err = false;
                $ch = curl_init();
                $messageid = microtime(true);
    
                $data = '--asdwewe'. "\r\n" .
                'Content-Type: application/xml; charset=UTF-8' . "\r\n\r\n" .
                '
                http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd">
                
                '
                . $addresses .
                '
                
                ' . "\r\n" .
                '--asdwewe' . "\r\n" .
                'Content-Type: application/json' . "\r\n" .
                        //'Content-Encoding: binary'. "\r\n" .
                'Push-Message-ID: ' . $messageid . "\r\n\r\n" .
                json_encode($message) . "\r\n" .
                '--asdwewe--' . "\r\n";
    
                // set URL and other appropriate options
                curl_setopt($ch, CURLOPT_URL, "https://pushapi.eval.blackberry.com/mss/PD_pushRequest");
                    curl_setopt($ch, CURLOPT_PORT , 443);
                    curl_setopt($ch, CURLOPT_SSLVERSION, 3);
                    curl_setopt($ch, CURLOPT_CAINFO, getcwd()."\cacert.pem");
                    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    
                curl_setopt($ch, CURLOPT_HEADER, false);
                curl_setopt($ch, CURLOPT_USERAGENT, "My BB Push Server\1.0");
                curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
                curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
                curl_setopt($ch, CURLOPT_USERPWD, $appid . ':' . $password);
                curl_setopt($ch, CURLOPT_POST, 1);
                curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    
                $__extra_Headers = array(
                    "Content-Type: multipart/related; boundary=asdwewe; type=application/xml",
                    "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2",
                    "Connection: keep-alive",
                    "X-Rim-Push-Dest-Port: ".$appport,
                    "X-RIM-PUSH-ID: ".$messageid,
                    "X-RIM-Push-Reliability-Mode: APPLICATION"
                );
                curl_setopt($ch, CURLOPT_HTTPHEADER, $__extra_Headers);
    
                // grab URL and pass it to the browser
                $xmldata = curl_exec($ch);
                if($xmldata === false){
                    echo 'Error pada CURL : ' . curl_error($ch)."\n";
                }else{
                    echo 'Operasi push berhasil'."\n";
                }
    
                // close cURL resource, and free up system resources
                curl_close($ch);
    
                //Start parsing response into XML data that we can read and output
                $p = xml_parser_create();
                xml_parse_into_struct($p, $xmldata, $vals);
                $errorcode = xml_get_error_code($p);
                if ($errorcode > 0) {
                    echo xml_error_string($errorcode)."\n";
                    $err = true;
                }
                xml_parser_free($p);
    
                echo 'Our PUSH-ID: ' . $messageid . "
    \n"; if (!$err && $vals[1]['tag'] == 'PUSH-RESPONSE') { echo 'PUSH-ID: ' . $vals[1]['attributes']['PUSH-ID'] . "
    \n"; echo 'REPLY-TIME: ' . $vals[1]['attributes']['REPLY-TIME'] . "
    \n"; echo 'Response CODE: ' . $vals[2]['attributes']['CODE'] . "
    \n"; echo 'Response DESC: ' . $vals[2]['attributes']['DESC'] . "
    \n"; } else { echo '

    An error has occured

    ' . "\n"; echo 'Error CODE: ' . $vals[1]['attributes']['CODE'] . "
    \n"; echo 'Error DESC: ' . $vals[1]['attributes']['DESC'] . "
    \n"; } } catch (Exception $e) { var_dump($e->getMessage()); } exit(); } } ?>

    See you soon

  • Send message push PC

    Hi all

    I have to develop an application that uses service push, and a feature is the ability to send a push message to (installed on a PC) software for the application installed on the Blackberry.

    I am newbie in the development of Blackberry, so my question is simple:

    Does anyone know how to send message push from a PC to a Blackberry please?

    Thank you for your answers

    The Debug Portal is just a web application built on the actual API SDK. The SDK itself is just a set of JAR files and configuration files, that you include in your classpath. You can build any type of application on top of those Java (eg. web app, stand-alone command line app, Swing App, etc...). The SDK is not all Web specific. Take a look at the JavaDoc for the SDK specifically the * Service classes.

  • my window vista sp2 stop sending messages for the server http for e-mail hotmail from July 2010. What other opion should I now? I use window 8. my mother was the first owner of this laptop.

    My lap top is a window vista premium 6.0 sp2. so, as I believe that in July 2010 my connection email expired with the sp2 from window to the server with http hotmail .com I was trying out an important e-mail to a certain Department of the army and he was ejected back because of my direct window a stopover for hotmail http sites. So, what's my next step? This laptop that I use now for academic use belonging to my mother. I was'nt sure of what to click on in the troubleshooting list. Thks.

    Are what the hell you referring in Windows 8?

    Submit all Hotmail queries on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • I can't send messages Error 0x800CCC0E, Port 25, secure-Yes, 10060 socket error

    I can't send messages.  My server's "Smtp.mail.yahoo.com" windows live mail error ID 0x800CCC0E
    Error Protocol SMTP, Port 25, secure-Yes, 10060 socket

    Thank you

    How to set up a Yahoo! Mail e-mail account in Windows Live Mail
    http://help.Yahoo.com/l/us/Yahoo/mail/YAHOOMAIL/mailplus/pop/pop-02.html
     
     
     
  • TBird does not delete messages from POP3 server with setting of ' leave messages on the server until I delete them.

    I use the pop3 Storage account. I installed thunderbird to download messages only when I ask them. I installed thunderbird to leave messages on the server until I delete them. I am able to send and receive messages without problem, but the messages that I delete the Inbox of Tbird not deleted from the server.

    In addition, what is the expected behavior for messages on the server if I move them to a local folder? That should remove them from the server, or they remain on the server until I have remove the local folder?

    Thank you.

    Deleting a message that "it mark as deleted", but it's still in the folder that is hidden from view. It's now displaying in the folder "deleted".

    you need to compact your file.
    ClickON Inbox right and select "Compact".

    Inbox, junk and probably get most of the activity when it comes to deletion, so they should be compacted ona regularly.
    I have several emails that I will delete every day, so these two fodler get compacted by day.

    See info on:
    maintain a healthy thunderbird.

    Compacting file, what it does and why it is important.

    Info Backup:

  • Error 0x800CCC0E while sending messages from Windows Live Mail

    Programs Application Applications Apps game games Legacy Crash crashes Hang Application Compatibility hangs

    I get messages in my Inbox, but cannot send messages through my Outbox.

    This is the message that appears:

    The connection to the server has failed. Server: 'smtp.comcast.net '.
    Windows Live Mail error ID: 0x800CCC0E
    Protocol: SMTP
    Port: 995
    Secure (SSL): No.
    Socket error: 10060

    995 Port SMTP is not the right port. Change the SMTP port to 587 and ensure that: my server requires authentication is enabled.

    How can I set up/configure Outlook Express, Windows Mail & Windows Live Mail to E-mail from Comcast?
    http://www.Comcast.com/customers/FAQ/FaqDetails.ashx?ID=2288

    http://customer.Comcast.com/pages/FAQViewer.aspx?GUID=5be34cb1-B190-4FC1-BEAA-818778a54aed

  • Error: "Server error: 554, 0x800CCC6F ' when sending e-mails from Outlook Express

    Original title: error fix 554

    I can receive messages from Outlook Express, but not send.  He said "Server error, 554, 0 x 800 CCC6F.  My server says it's MY problem, I had a virus or something through my system, and I can't use my email for 48 hours and to search for it on the web.  She said that someone has used my IP address to run a high traffic email (probably spam) through volume.  Is there a fix for this, because it drives me nuts, especially with a postal strike imminent.

    Brenda

    If its a problem with your computer by sending e-mail messages, you must obtain an antivirus program, such as www.microsoft.com/security_essentials and also antimalware (www.malwarebytes.org) and carefully analyze and disinfect your computer.

    In OE, completely remove your e-mail account and close then reopen the OE.  Then add your account mail back with the appropriate credentials.  Also, go to tools | Options | Security and put it in the sensitive area and check the box that says to notify you if someone is trying to send emails like you.

    When you are finished with it, then wait 48 hours than your ISP gives you and then try receiving and sending again.

    Steve

  • Your message has not been sent because there is a daily limit of message. Unable to send messages from this account until tomorrow, or what this account is checked.

    Your message has not been sent because there is a daily limit of message. Unable to send messages from this account until tomorrow, or what this account is checked.

    Object 'of family trust of Smart Fortunes - Lucespace"
    Server error: 3210
    Windows Live Mail error ID: 0x8DE00006

    How to check my account to allow me to send emails, because these are payroll cards and I need to send them the same day?

    Concerning

    Susan Dooley

    Contact Lucespace.

  • Treo Pro Error Message 530 5.7.1 unauthorized relay cannot send the email from pop acct

    I just bought the treo pro through Sprint. I love the phone, that I do not understand the correct settings for my Email POP account outgoing whenever I configured the settings correctly and try to send an email, I get an error message "530 5.7.1 relay unauthorized." I get this message with the server leaving the value smtp.sprintpcs.com and I get this error through an "undeliverable" E-mail message in the same account I try to send from. When I have the account set to mail.optonline.net outgoing of my ISP server it will send only e-mail if I have my camera set to mode WIFI... Any ideas? Thank you.

    -Jay-

    audiojay11 wrote:

    P.s. I read in one other poster where he advises to change the port exit # from 25 to 587. This sounds very familiar to me, because when I recently set up my blackberry I think Cablevision has advised me to do this exact change. Now, here is the million dollar question. How to change the port # s on the treo pro?
  • Unable to send message AT & T - does not connect to the server. Anyone else having this problem?

    All of a sudden I can't send messages on my AT & T account. I get a message that Thunderbird cannot connect to the server (SMTP). Called at & T and they checked all the settings. I can access my email account on Apple Mail and Yahoo (AT & T email provider), and yet I can not send messages on Thunderbird. I can receive but not send.

    I tried deleting the account and the recovery, but that has not helped. Does anyone else have this problem?

    Christ1,

    Thanks for the tips.

    Even set up a new account did not work. Despite AT & you s claim that it was not a problem with their servers and taking me through a number of measures to ensure what was the origin of the problem, he as magically disappeared as soon he came a few hours after all the machinations. So, still do not know what caused it, but it disappeared.

  • I can't send emails with the server that I use to receive. Can you tell me how to find my server from?

    Help send emails

    I can't send emails with the server that I use to receive. Can you tell me how to find my server going.

    Your provider of messaging service for this information.

  • Error message States 'A TCP/IP error occurred while trying to send data to the Server Error 0x800ccc13' when try to open Microsoft Outlook 2000.

    Original title: Office of Microsoft Outlook 2000 does not open.

    Error message States "A TCP/IP error occurred while trying to send data to the Server Error 0x800ccc13 #

    Hi John,.

    1. what operating system is installed on your computer?

    2 How long have you been faced with this problem?

    3. don't you make changes on your computer before this problem?


    Reference:
    Outlook 2000 Solution Center

    Please post back and we do know.

  • For some reason, I can't send messages from outlook express.

    for some reason, I can't send messages from outlook express, think he was with my trying to send a facebook e-mail that was much too long

    for some reason, I can't send messages from outlook express, think he was with my trying to send a facebook e-mail that was much too long


    You don't offer a lot of information and a new thread of your own would have been better than locking it.
     
    Do you have an error message when you try to send? If so, post it. If this is not the case, make sure that there are no messages in the Outbox.
     
    If there is, check: file | Work offline and in: reviews | Layout: uncheck the preview pane. You can remove them now?
     
    If this isn't the case, create a new Outbox.
     
    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.
     
    In Windows XP, 2K & 2K 3, files from user OE (DBX and WAB) are by default marked as hidden. To view these files in the Solution Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder options | View.
     
    With OE closed, find the DBX the Outbox.dbx file and delete it. A new vacuum will be created automatically when you open OE.
  • I'm using Outlook Express and from time to time, the box "leave a copy of messages on the server" becomes disabled automatically.

    Hi, Im using Outlook Express and from time to time, box "leave a copy of messages on the server" becomes disabled automatically.

    Ive checked the Task Manager, its not running after close Outlook.

    Appreciate your comments.

    This can be dependent on ISP or it could just be OE spoil.  I saw this happen at any time.  You can try to backup the message store, and then delete the mail account completely (you will not lose messages).  The file to run. Folder | All compact.  Then close and reopen OE and then add the account back again.  See if things stick after that.

    Steve

Maybe you are looking for