BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-03-2009, 09: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, 02: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





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