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 Contributor
Talha
Posts: 2
Registered: ‎04-06-2010
My Device: Bold 9000

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--

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

 

 

Please use plain text.
New Contributor
Talha
Posts: 2
Registered: ‎04-06-2010
My Device: Bold 9000

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

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,649
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

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.
Found a bug? Report it using Issue Tracker
Please use plain text.