我有以下代码工作了好几个月......突然间它停止工作了:
这是我得到的错误: org.xmlpull.v1.XmlPullParserException:expected:START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope(位置:START_TAG @ 1:6 in java.io.InputStreamReader@4494c480)
有人知道为什么...... ??
try
{
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("ZIP", zipcode);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
Object result = envelope.getResponse();
WeatherResult = result.toString();
} catch (Exception E)
{
E.printStackTrace();
}