【发布时间】:2011-08-12 17:03:45
【问题描述】:
我是一名 android 开发人员,我使用 SOAP 从服务器获取 xml 格式的响应。以下是我正在使用的代码:
SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE httpTransport = new HttpTransportSE(SOAP_ADDRESS);
try
{
httpTransport.call(SOAP_ACTION, envelope);
Object response = envelope.getResponse();
textView.setText(response.toString());
}
catch (Exception exception)
{
textView.setText(exception.toString());
}
我收到了 xml 标签格式的响应,但我只需要响应中的 photourl 标签,如何获取?
【问题讨论】:
-
您使用的是哪个 SOAP 库?