BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 11-24-2009, 07:31 AM   #1
somashekar
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: 9530
PIN: N/A
Carrier: soft
Posts: 26
Default server application

Please Login to Remove!

Hi All,

Am thinking of the application like the processing is done in the local server and the output displayed on the device.

can this application is possible to develop. please help me.


Thanks in advance...
Offline  
Old 11-24-2009, 08:29 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

You need to ask a better question.
Offline  
Old 11-26-2009, 03:58 AM   #3
somashekar
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: 9530
PIN: N/A
Carrier: soft
Posts: 26
Default

In what ways i can communicate with server.
Offline  
Old 11-26-2009, 10:04 AM   #4
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

HTTP. See the HTTPDemo application that ships with the JDE.
Offline  
Old 11-27-2009, 01:39 AM   #5
somashekar
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: 9530
PIN: N/A
Carrier: soft
Posts: 26
Default

thanks for the replay.

U have any idea about RMI(remote method invocation) in blackberry.

Thanks in advance
Offline  
Old 11-27-2009, 09:16 AM   #6
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

No - you'll need to use web services instead. Look at KSOAP (4.5 and lower) and/or JSR172.
Offline  
Old 11-29-2009, 08:02 AM   #7
peterjtracey
New Member
 
Join Date: Oct 2009
Model: 7100T
PIN: N/A
Carrier: ATT
Posts: 5
Default PHP Server

A simple way to get up and running is to use PHP as the server with QCubed ORM objects:

Code:
<?
require('../../../qcubed/wwwroot/includes/prepend.inc.php');
 
$server = new SoapServer(null, array('uri' => "urn:keyringlabs.com"));
$server->addFunction("login");
$server->handle();
 
function login($email, $pass) {
	if (strlen($email) == 0) {
		return Array('serviceToken' => '');
	} elseif (strlen($pass) == 0) {
		return Array('serviceToken' => '');
	} else {
		$objMerchant = Merchant::LoadByEmailPassword($email, $pass);
		if ($objMerchant == null || $objMerchant->Id < 1) {
			return Array('serviceToken' => '');
		} else {
			$key = uniqid();
			$objSess = new Merchantsessions();
			$objSess->MerchantID = $objMerchant->Id;
			$objSess->ServiceToken = $key;
			$objSess->Save();
		}
	}
 
	$result = Array('serviceToken' => $key);
	return $result;
}
 
 
?>
Note that for real applications the password should be encrypted which requires a bit more work...
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


OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8 picture

OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8

$54.00



NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL  picture

NEW DELL OEM REPLACEMENT PROJECTOR LAMP FOR 4220 4320 GENUINE ORIGINAL

$198.22



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98



1 of Dell OEM Optiplex 7040 3040 5040 3046 I/O VGA Board w/ Cable TXA01 FP9X3 picture

1 of Dell OEM Optiplex 7040 3040 5040 3046 I/O VGA Board w/ Cable TXA01 FP9X3

$22.93







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