BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-18-2005, 05:21 AM   #1 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Sendind data from handheld to BES

Please Login to Remove!

Hi,

I'm new in BlackBerry development.
I've created a small application that sends a XML document to the BB handheld.
So far so good, the push works fine.

But, how can I send information back from the BB handheld to the BES?
Is there a kind of push back to the BES?

Thanx for the answers,
Piet
Offline  
Old 08-18-2005, 08:34 AM   #2 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is there nobody who knows how to send data from the handheld back to the server?

Thanx,
Piet
Offline  
Old 08-18-2005, 09:45 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The BES (really MDS portion) acts as a proxy. Basically you need a server component to handle BB to BES communication.
Offline  
Old 08-18-2005, 09:49 AM   #4 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

What do you mean exactly with 'a server component'?

Where's the server component installed?
On a custom web server?

Thanx,
Piet
Offline  
Old 08-18-2005, 09:53 AM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes.

So say you have a PHP, Web Service, etc. server running, then the BB would follow the same model as a web browser ( it is harder because you need to develop the client side on the BB).

The BES just provides a secure, proxy to access those elements from the BB.

Hopefully that helps.
Offline  
Old 08-18-2005, 10:00 AM   #6 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's coming

So I do a simple post to a web server?
The MDS is only used to push information from the server to the handheld and not in the other direction?

Do you have examples or references where I can find more info of how I can access external servers from the handheld?

Thanx again,
Piet
Offline  
Old 08-18-2005, 10:09 AM   #7 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Check out BB Application Developer Guide Volume 1 page 84.

Push is from BES to device only - and you still need to develop the server side component to "push" the data to BB via BES.

There are examples on blackberry.com/developers. Check it out.
Offline  
Old 08-18-2005, 10:12 AM   #8 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I know how I have to push data from BES to the handheld, that's not my problem.

I just want to push data from my BB to the BES and treat this data with my custom application server.
Offline  
Old 08-18-2005, 10:29 AM   #9 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2004
Model: 8700r
Carrier: Rogers
Posts: 221
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

What you need to do is have it

1. User initiated
2. Based on data changes
3. Background Thread - interval based
Offline  
Old 08-18-2005, 10:46 AM   #10 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2005
Model: Lots
Carrier: Rogers
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can make a socket or http connection from the BlackBerry through MDS to a server application. You don't actually connect to the BES from the BlackBerry, your communication just goes "through" it to to another application on the other side (a web server, something you create, etc...).

How you send this and what you send it to is up to you. There are client and server side samples included with the BlackBerry JDE that show how to do this.

DaHunter
Offline  
Old 08-18-2005, 10:56 AM   #11 (permalink)
New Member
 
Join Date: Aug 2005
Model: 7100
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanx for the answers.

I'm maybe blind but I don't find examples of how sending data from BB to BES.
I only find BES to BB examples.

Can you send me a reference (and maybe glasses ).

Thanx,
Piet
Offline  
Old 08-18-2005, 07:03 PM   #12 (permalink)
Thumbs Must Hurt
 
Join Date: Aug 2004
Location: Metro NYC
Posts: 175
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You don't send data from the device to the BES.

You send data from the device to a remote server. Typically via http.

Check out the httpdemo sample that is included with the JDE.
__________________
-- Aric Rosenbaum
BlackBerry consulting, BlackBerry development
www.arconsultinginc.com
BlackBerry consulting and development (RIM SI Partner)
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.