06-03-2009, 09:35 AM
Join Date: Jun 2009
Carrier: no carrier
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Soap Connection on Blackberry client failed
Please Login to Remove!
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");
System.out.println("Called uurn:CSP#getServerDate by transportSE");
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 ?