访问WebService时出现org.xmlpull.v1.XmlPullParserException: Expected a quoted string错误

错误log:

09-22 10:27:56.330: W/System.err(5378): org.xmlpull.v1.XmlPullParserException: Expected a quoted string (position:DOCDECL @1:62 in java.io.InputStreamReader@41505bc0) 
09-22 10:27:56.330: W/System.err(5378): 	at org.kxml2.io.KXmlParser.readQuotedId(KXmlParser.java:664)
09-22 10:27:56.330: W/System.err(5378): 	at org.kxml2.io.KXmlParser.readExternalId(KXmlParser.java:643)
09-22 10:27:56.330: W/System.err(5378): 	at org.kxml2.io.KXmlParser.readDoctype(KXmlParser.java:585)
09-22 10:27:56.340: W/System.err(5378): 	at org.kxml2.io.KXmlParser.next(KXmlParser.java:418)
09-22 10:27:56.340: W/System.err(5378): 	at org.kxml2.io.KXmlParser.next(KXmlParser.java:310)
09-22 10:27:56.340: W/System.err(5378): 	at org.kxml2.io.KXmlParser.nextTag(KXmlParser.java:2035)
09-22 10:27:56.340: W/System.err(5378): 	at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:126)
09-22 10:27:56.340: W/System.err(5378): 	at org.ksoap2.transport.Transport.parseResponse(Transport.java:63)

问题原因:

WebService是内网地址,而我的手机连上了外网的wifi


解决办法:

切换能访问内网的wifi即可

你可能感兴趣的:(android,webservice,异常)