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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 2
Registered: ‎04-06-2010
My Device: Bold 9000
My Carrier: Rogers

Connection Refused error - Sending push notifications to the MDS Simulator

Hi,

 

For testing purposes, I'm trying to send a push notification to my MDS simulator, and am getting a "Connection refused: connect" error. I'm using BES, not BIS.

 

I have included my PAP message format below.

 

Any advice would be appreciated!

 

Thanks,

 

Talha

 

===================================================================

;--PMasdfglkjhqwert
;Content-Type: application/xml
;<?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-message push-id="999999999"
;source-reference="AAAAAAAAAAAA"
;deliver-before-timestamp="2008-09-31T13:30:00Z"
;ppg-notify-requested-to="notify_url_path">
;<address address-value="PIN00001"/>
;<address address-value="PIN00002"/>
;<address address-value="PIN00003"/>
;<quality-of-service delivery-method="confirmed"/>
;</push-message>
;</pap>
;--PMasdfglkjhqwert
;Content-Encoding: binary
;Content-Type: text/html
;Text or binary content to be delivered to BlackBerry device goes here.
;--PMasdfglkjhqwert--

===================================================================

 

 

New Contributor
Posts: 2
Registered: ‎04-06-2010
My Device: Bold 9000
My Carrier: Rogers

Re: Connection Refused error - Sending push notifications to the MDS Simulator

To add to my previous post, this is the body of my HTTP request:

 

body="Content-Type: application/xml <?xml version="1.0" encoding="UTF-8"?> <pap><push-message source-reference="AAAAAAAAAAAAA" deliver-before-timestamp="2010-09-31T13:30:00Z" ppg-notify-requested-to="http://localhost:7081/company/channel/bes_response" push-id="99999999"><address address-value="PIN00001"/><address address-value="PIN00002"/><address address-value="PIN00003"/><quality-of-service delivery-method="confirmed"/></push-message></pap>Content-Type: text/html

BlackBerry Development Advisor
Posts: 15,888
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Connection Refused error - Sending push notifications to the MDS Simulator

The default port used by the MDS-CS Simulator to receive pushes is 8080, however you are pushing to port 7081.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.