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

(K15) VINTAGE Nautical Navy Flag Mug Dec. 1980
$20.0
(K15) VINTAGE Nautical Navy Flag Mug Dec. 1980 pictureHand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971
$55.0
Hand Glove Vintage Mannequin General Porcelain Sz 8 HH Trenton NJ Dec. 15, 1971 pictureVintage Cast Iron Barbwire Stretcher Dated Dec 6 1885 ~ Unknown Manufacturer
$19.99
Vintage Cast Iron Barbwire Stretcher Dated Dec 6 1885 ~ Unknown Manufacturer pictureVintage Digital DEC M3106 Line SYNC MUX Board
$29.99
Vintage Digital DEC M3106 Line SYNC MUX Board pictureAshcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique
$49.0
Ashcroft Paper Tester, Pat. Dec. 31,1912, Vintage, Antique picture






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