XmlPullParserException有望与Ksoap2(XmlPullParserExcep

2019-10-29 06:16发布

我用我的Android应用SOAP请求时,会遇到很多困难。 我用Ksoap2库。 我已经创建了一个关于它的帖子里,你可以看到我的代码在这里

我试图修改我常是这样的:

public final static String SOAP_ACTION = "http://xmlns.oracle.com/orawsv/USER/WSS_USER_CLI/GETARTICLE/";
public final static String NAME_SPACE = "http://xmlns.oracle.com/orawsv/USER/WSS_USER_CLI/GETARTICLE";
public final static String URL = "https://xxx.xxx.xxx.xxx:1443/orawsv/USER/WSS_USER_CLI/GETARTICLE?wsdl";
public final static String GET_ARTICLE_METHOD_NAME = "GETARTICLE";
public final static String GET_ARTICLE_SOAP_ACTION = SOAP_ACTION + GET_ARTICLE_METHOD_NAME;

但现在我有这样的错误信息:

> 07-13 11:17:33.163 3355-4210/com.ablinfo.mweb W/System.err: org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <definitions name='GETARTICLE' targetNamespace='http://xmlns.oracle.com/orawsv/USER/WSS_USER_CLI/GETARTICLE'>@6:56 in java.io.InputStreamReader@b3b2c69) 
07-13 11:17:33.164 3355-4210/com.ablinfo.mweb W/System.err:     at org.kxml2.io.KXmlParser.require(KXmlParser.java:2065)
        at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:128)
        at org.ksoap2.transport.Transport.parseResponse(Transport.java:129)
        at org.ksoap2.transport.HttpTransportSE.parseResponse(HttpTransportSE.java:301)
        at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:274)
        at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118)
        at com.ablinfo.mweb.service.WebServiceCall.callWSThreadSoapPrimitive(WebServiceCall.java:62)
        at com.ablinfo.mweb.service.GetArticleTask.doInBackground(GetArticleTask.java:36)
07-13 11:17:33.165 3355-4210/com.ablinfo.mweb W/System.err:     at com.ablinfo.mweb.service.GetArticleTask.doInBackground(GetArticleTask.java:11)
        at android.os.AsyncTask$2.call(AsyncTask.java:295)
        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
        at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
        at java.lang.Thread.run(Thread.java:818)
文章来源: XmlPullParserException expected with Ksoap2