Reputation: 4956
I have an application in which I use Soap Web-Service in .net language. I have a structure like this :
Problem : The response is an array of tables. The size of the soap object is too large. When I access the web-service on web-browser, it shows all the data. But when I was trying to access it in android application, It is not able to get whole response. It breaks in half response...
<GetPickersResponse xmlns="http://tempuri.org/">
<GetPickersResult>
<Picker>
<Id>int</Id>
<StartTime>dateTime</StartTime>
<EndTime>dateTime</EndTime>
<PickerCount>int</PickerCount>
</Picker>
<Picker>
<Id>int</Id>
<StartTime>dateTime</StartTime>
<EndTime>dateTime</EndTime>
<PickerCount>int</PickerCount>
</Picker>
</GetPickersResult>
</GetPickersResponse>
</soap:Body>
</soap:Envelope>
This is the code by which I m able to get the data :
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION, envelope);
![> if (envelope.bodyIn instanceof SoapObject) { SoapObject soapObject =
(SoapObject) envelope.bodyIn; Log.i("SoapObject soapObject", ""+soapObject); }]
Here is the response image:
Upvotes: 1
Views: 1718
Reputation: 7066
try use like this;
SoapObject response = (SoapObject) envelope.getResponse();
Upvotes: -1