BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-03-2009, 08:35 AM   #1 (permalink)
New Member
 
Join Date: Jun 2009
Model: 8300
PIN: N/A
Carrier: no carrier
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Soap Connection on Blackberry client failed

Please Login to Remove!

Hello,
I'm trying to develop a Java Blackberry client using soap.The Soap server is written in PHP and working(already tried it with a local php client).
The Java Blackberry client fails to establish a conenction to server.
This is my code:

System.out.println("creating http transport");
HttpTransport transportSE = new HttpTransport("localhost/serverSoap.php");
// i removed http before localhost because i got this message when trying to post this topic "Please remove links from your message"
transportSE.debug = true;
System.out.println("Creating Soap Object");
SoapObject SOAPHello = new SoapObject("urn:CSP", "getServerDate");



SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapSerializationEnvelop e.VER11);


envelope.bodyOut = SOAPHello;

System.out.println("try to connect");

transportSE.call(null,envelope);
System.out.println("Called uurn:CSP#getServerDate by transportSE");

System.out.println("Res "+envelope.getResponse());

}
When i execute my program in BB simulator and debug it works fine until the instruction : transportSE.call(null,envelope) where the program is blocked.
The messages "Creating Soap Object" and "try to connect" are displayed in the console then the progran stops at the instruction transportSE.call(null,envelope) and the message "connsction des not exist" is displayed in the console.
Do you know any solution ?
Offline  
Old 06-04-2009, 01:57 PM   #2 (permalink)
New Member
 
Join Date: Jun 2009
Model: 8820
PIN: N/A
Carrier: 987654321
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

we have the same mistake
any help please!!!!!!!!!!!!!
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

Kollmorgen Goldline PM Servomotor 240V 7500 RPM B-102-A-22
$149.0
Kollmorgen Goldline PM Servomotor 240V 7500 RPM B-102-A-22  pictureTEXAS INSTRUMENTS, OPA633KP, IC, BUFFER AMPLIFIER
$18.61
TEXAS INSTRUMENTS, OPA633KP, IC, BUFFER AMPLIFIER pictureNEW HAWE EV1M2-12/24 ELECTRONIC AMPLIFIER *NEW IN A BOX* HYDRAULIK EV1M2
$297.9
NEW HAWE EV1M2-12/24 ELECTRONIC AMPLIFIER *NEW IN A BOX* HYDRAULIK EV1M2 pictureFANUC A06B-6066-H011 A06B6066H011 SERVO AMPLIFIER--RECONDITIONED-SALE
$989.85
FANUC A06B-6066-H011  A06B6066H011 SERVO AMPLIFIER--RECONDITIONED-SALE pictureTECHRON 3620 LINEAR AMPLIFIER
$875.0
TECHRON 3620 LINEAR AMPLIFIER picture






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