В моем случае у меня есть ответ на мыло, в котором хранятся значения значений «ArrayOfArrayOfString».Как преобразовать мыльный отклик в многомерный массив?
Это похоже на массив A [4] [4].
А [0] [0] -> ServiceId
А [0] [1] -> Имя_службы
А [0] [2] -> ServiceImageURL
А [0] [3] -> ServiceDecription
а [0] [4] -> ServiceIconURL
и все его же Шифрование до а [4] [4].
Как я могу обработать этот тип ответа в андроиде?
код что-то вроде:
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE transportSE = new HttpTransportSE(URL);
transportSE.debug = true;
Log.i("WebService", "msg:try_out");
String[] columns = null;
ArrayList<String> rows = new ArrayList<String>();
try
{
Log.i("WebService", "msg:try+in");
transportSE.call(SOAP_ACTION, envelope);
Log.i("WebService", "msg:SoapObject");
SoapObject response = (SoapObject)envelope.getResponse();
Log.i("WebService", "Response");
try
{
// WhaT SHOULD I USE HERE to convert it to 2D Array//
}
catch (Exception e)
{
e.printStackTrace();
Log.v("CATCH BLOCK", e.getMessage());
}
}
catch (Exception e)
{
e.printStackTrace();
Log.i("WebService", "msg:Exception error");
Log.i("WebSerivce", e.getMessage());
return e.getMessage();
}
Пожалуйста, помогите мне об этом.
Вот мыло-код ::: – Harpreet
Ведущий: www.xyz.com Content-Type: Текст/XML; кодировка = UTF-8 Content-Length: длина SOAPAction: "http://abc.net/webservices/LoadServices" XML версия = "1.0" кодирование = "UTF-8"?> <мыло: Envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: xsd = "http://www.w3.org/2001/XMLSchema" xmlns: soap = "http: // schemas.xmlsoap.org/soap/envelope/">
Harpreet