If I am trying to retrieve first array using (String) response.getProperty(0); but it was returning me a full string.
**Here is the code of webservice calling**
public static Object getResponse(String methodName, String actionName, LinkedHashMap valueStrings)
{
SoapObject soapObject = new SoapObject(LetUsClickAPIConstants.COMMON_NAMESPACE, methodName);
Object response = null;
for (Map.Entry mapKeys : valueStrings.entrySet())
{
soapObject.addProperty(mapKeys.getKey(), mapKeys.getValue());
}
final SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = false;
envelope.setOutputSoapObject(soapObject);
final AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(LetUsClickAPIConstants.COMMON_URL);
try
{
androidHttpTransport.call(actionName, envelope);
response = envelope.getResponse();
Log.d("Response ", response.toString());
} catch (final IOException e)
{
Log.d("Exception", "" + e);
} catch (final XmlPullParserException e)
{
Log.d("Exception", "" + e);
}
return response;
}
I got an response in Vector type
[Client{UserId=93; nickName=ladies; }, Client{UserId=94; nickName=ABCD; }]
I have tried many ways but I am not success to retrieve in any way?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)