BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-23-2009, 02:25 AM   #1 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: develloper
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Web service

Please Login to Remove!

How can I connect to a web service httpconnrxion, and how to use a class of web service
help me
Offline  
Old 04-23-2009, 08:41 AM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: develloper
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

plz help im loking for example for connexion of bb with web service
Offline  
Old 04-23-2009, 11:48 AM   #3 (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

Search the forum for KSOAP - you wil find several threads on the subject.
Offline  
Old 04-23-2009, 07:00 PM   #4 (permalink)
New Member
 
Join Date: Apr 2009
Model: 7100T
PIN: N/A
Carrier: develloper
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

good,,
I have yet 2 problems
I want to get connected to a web service that contains a simple class that calculates the sum of two numbers by a method calculate (int a, int b) with two arguments
I had sent by the soap.
Here is the code I used:
if you see any errors please let me specify.
Code:
try {
								
	    	  				int a=1;int b=2;
	    	  				SoapObject request = new SoapObject(url, "add");
	    	  				HttpTransport ht = new HttpTransport(url);
	    	  				request.setProperty(a, "PARAMETER_ID");
	    	  				request.setProperty(b, "PARAMETER_ID");
	    	  				
	    	  				SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
	    	  				envelope.setOutputSoapObject(request);
	    	  				ht.call("", envelope);	
	    	  				
	    	  				SoapObject result = (SoapObject)envelope.getResponse();
	    	  				Object x=result.getProperty("");
	    	  				Dialog.alert("i am here in tray");
	    	    		  }
	    	    		  catch (Exception e) {
	    	  				Dialog.alert("i am here in catch"+ e.getMessage());
	    	  				}
The second thing is when I run the program I have an exception that says "error starting: httpd module soap j2me-core-2.1.2 not found"

so I'm stuck at this stage and I can solve the pad problems please help me or suggest another solution because I need to connect to web service and I made simple test but I can't
pleaz help
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

LOT OF 10 SIEMENS OPENSTAGE 40 SIP VOIP OFFICE TELEPHONE L30250-F600-C108
$59.99
LOT OF 10 SIEMENS OPENSTAGE 40 SIP VOIP OFFICE TELEPHONE L30250-F600-C108 pictureNEC Aspire 8 Slot KSU IP1NA-8SKU-A1 0890000 VoIP Cabinet w/Cover EMPTY
$65.0
NEC Aspire 8 Slot KSU IP1NA-8SKU-A1 0890000 VoIP Cabinet w/Cover EMPTY pictureNEW Avaya 9608 IP VoIP Phone Telephone
$59.0
NEW Avaya 9608 IP VoIP Phone Telephone  pictureAVAYA 1608i IP TELEPHONE IP OFFICE 500 IPO IP500 VOIP 700458532 1608D01A-003
$67.75
AVAYA 1608i IP TELEPHONE IP OFFICE 500 IPO IP500 VOIP 700458532 1608D01A-003 pictureAastra 9133i, VOIP- BY AaSTRA/MERIDIEN 3-LINE
$38.98
Aastra  9133i, VOIP- BY AaSTRA/MERIDIEN 3-LINE   picture






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