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
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!

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");,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 :,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,envelope) and the message "connsction des not exist" is displayed in the console.
Do you know any solution ?
Old 06-04-2009, 01:57 PM   #2 (permalink)
New Member
Join Date: Jun 2009
Model: 8820
Carrier: 987654321
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts

we have the same mistake
any help please!!!!!!!!!!!!!

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