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):
<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:
SoapObject request = new SoapObject(URL, SERVICE);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
HttpTransport ht = new HttpTransport("ht tp://xxxxxxxxxxxx:xxxx/xxx/xx/xx");
result = (envelope.getResponse()).toString();
System.out.println("DEBUG: Response=*" + result + "*");
And here is the strangest part. This is the result I get while debugging:
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.