BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-02-2009, 03:33 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 7100t
PIN: N/A
Carrier: verizon
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Weird behavior while receiving a web service response

Please Login to Remove!

Hi,

I have a web service which returns a big string (10000+ characters) representing XML code.

Here is a part of it (the beginning and the end):
Code:
<Advertisers>[...]</reportTable></Sites><reportDate>Thu Apr 02 12:04:42 PDT 2009</reportDate>
I tested it with SOAPSonar, which is a tool to test web services with their wsdl. Anyway that works.

So I developped a blackberry client using ksoap2 to connect to the web service. Here is the code:
Code:
SoapObject request = new SoapObject(URL, SERVICE);
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        request.addProperty("username", "testuser");
        envelope.setOutputSoapObject(request);
        try {
            HttpTransport ht = new HttpTransport("ht tp://xxxxxxxxxxxx:xxxx/xxx/xx/xx");
            ht.call(null, envelope);
            result = (envelope.getResponse()).toString();
            System.out.println("DEBUG: Response=*" + result + "*");
And here is the strangest part. This is the result I get while debugging:
Code:
DEBUG: result=*</Sites><reportDate></reportDate>*
So this is supposed to be the end of the request but there is not even all the elements (some text is missing between the reportDate tags).
I've tried to hard-code the string and it does work so I don't think the issue is related to the size of the string.

I'm totally lost and any advice is appreciated.
Offline  
Old 04-06-2009, 10:06 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 7100t
PIN: N/A
Carrier: verizon
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

any idea?
Offline  
Old 04-07-2009, 08:51 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 7100t
PIN: N/A
Carrier: verizon
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Still nothing
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

The VoIP Lounge Replacement 25 Ft Black Handset Curly Cord For AT and T Phones
$13.04
 The VoIP Lounge Replacement 25 Ft Black Handset Curly Cord For AT and T Phones picturePOLYCOM SOUNDSTATION IP 7000 EX SIP VoIP IP7000 Conference Phone
$528.0
POLYCOM SOUNDSTATION IP 7000 EX SIP VoIP IP7000 Conference Phone pictureNEW JABRA NETWORK GN 8210 DIGITAL AMPLIFIER & GN2100 VOIP MONO FLEX HEADSET
$19.99
NEW JABRA NETWORK GN 8210 DIGITAL AMPLIFIER & GN2100 VOIP MONO FLEX HEADSET pictureAastraLink Pro 160 VoIP PBX with 6x FXO, 2x FXS
$250.0
AastraLink Pro 160 VoIP PBX with 6x FXO, 2x FXS pictureLOT OF 4 POLYCOM IP501 SIP PHONE VOIP SPEAKERPHONES T8-F12
$40.0
LOT OF 4 POLYCOM IP501 SIP PHONE VOIP SPEAKERPHONES T8-F12 picture






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