BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-24-2009, 07:31 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: 9530
PIN: N/A
Carrier: soft
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

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

In what ways i can communicate with server.
Offline  
Old 11-26-2009, 10:04 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

HTTP. See the HTTPDemo application that ships with the JDE.
Offline  
Old 11-27-2009, 01:39 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2009
Model: 9530
PIN: N/A
Carrier: soft
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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 (permalink)
New Member
 
Join Date: Oct 2009
Model: 7100T
PIN: N/A
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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

Royal Enfield VINTAGE 1950s Brass Steering Stem Lock Nut
$27.79
Royal Enfield VINTAGE 1950s Brass Steering Stem Lock Nut pictureVINTAGE 69 NOS RARE TEXAS INSTRUMENTS GOLD FLAT PACK IC PROCESSOR CHIP SN5400F05
$49.99
VINTAGE 69 NOS RARE TEXAS INSTRUMENTS GOLD FLAT PACK IC PROCESSOR CHIP SN5400F05 pictureVintage Clipboards A&W, Saunders
$14.99
Vintage Clipboards A&W, Saunders picture3 point lower three point hitch quick release claw vintage IH
$30.0
3 point lower three point hitch quick release claw vintage IH picture






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