BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-18-2006, 06:38 AM   #1
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Question Best way to transfer/send data from device to server side ?

Please Login to Remove!

Hi,
Say, I have collected some data to the device. As example I have “Saman” as customer name and “25” as his age. These data are captured via device.

Now I want send these things to our server…..
(Now I send these data as parameters of a URL.)

Instead of URL parameter passing what are the other possible ways?
How can I send data to server (blackberry server or any other server)?
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 06:51 AM   #2
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

What I need to do is save those Name and Age in Server Side SQL Database.

Data are capture via BB Device and when it save those data should go to server side databse.
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 07:48 AM   #3
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

we solved this by developing a server application (with standard java/eclipse) that runs on a certain port and listens for commands with parameters.

the BB app opens a socket connection on this specific port and sends the commands.

these commands are translated into SQL statements and executed via jdbc on a sql database, the result set is translated into a string array and sent back.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 08-18-2006, 08:09 AM   #4
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

Oh.. Thanks Simon

Few more questions....

Do we have to store data temporally in BB Device?

What are good tutorials which you are prefer to follow?

What do you think that passing data as parameters on a URL?

Can we do it using Netbeans ?
Are these application are complex?
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-18-2006, 09:56 AM   #5
donricouga
Thumbs Must Hurt
 
Join Date: Jul 2006
Location: Atlanta
Model: 8703e
Carrier: Sprint
Posts: 58
Default

How bout writing a simple webservice and using some SOAP API like kSOAP to send that data to the backend.
Offline  
Old 08-18-2006, 10:45 PM   #6
ujbandara
Thumbs Must Hurt
 
ujbandara's Avatar
 
Join Date: Aug 2005
Location: Upul Bandara from Colombo Sri Lanka -----------------------------
Model: 7290
Carrier: Dialog
Posts: 153
Default

webservice ...Ya, I also thinks about it.
But is it possible in BB with Netbeans...
__________________
Did you ever compare Affrican Elephants and Sri Lankan Elephants?
Where are classic Elephants?

Upul
Offline  
Old 08-21-2006, 04:09 AM   #7
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

imo KSOAP is too much overhead. But go ahead if you like it

We have certain apps that offer an offline functionality by using persistant storage if no coverage is available, most don't because it is not really easy to implement.

good tutorials, hmm.
regarding a server application there are good examples about JDBC which can be downloaded together with the driver. the socket connection itself should be trivial.

i used the parameter-thing by URL myself. it works for small data but creates a lot of overhead and is quite slow.
if you want to work with SQL and especially want to get results back to your device you have to use a server.

feel free to contact me if you are interested in buying a general sql-bb-connector, i think we have that in stock.
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


10 x  SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW picture

10 x SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW

$329.95



1PCS New SIEMENS 6ES7 151-1AA06-0AB0 6ES7151-1AA06-0AB0 In Box Expedited Ship picture

1PCS New SIEMENS 6ES7 151-1AA06-0AB0 6ES7151-1AA06-0AB0 In Box Expedited Ship

$409.32



new In Box Siemens 6GK5208-0BA10-2AA3 PLC Module 6GK5208-0BA10-2AA3 PLC picture

new In Box Siemens 6GK5208-0BA10-2AA3 PLC Module 6GK5208-0BA10-2AA3 PLC

$377.27



LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW picture

LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW

$396.99



LOT OF 10 SIEMENS Q115DF 15A DUAL FUNCTION AFCI/GFCI BREAKERS NEW picture

LOT OF 10 SIEMENS Q115DF 15A DUAL FUNCTION AFCI/GFCI BREAKERS NEW

$444.99



LOT OF 10 SIEMENS QA120AFC  20A AFCI BREAKER (with pigtail wire) NEW picture

LOT OF 10 SIEMENS QA120AFC 20A AFCI BREAKER (with pigtail wire) NEW

$398.99







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