Android:ksoap2请求从标记中删除命名空间

Android:ksoap2请求从标记中删除命名空间,android,ksoap,Android,Ksoap,我使用的KSOAP创建了以下请求负载:- <v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"> <v:He

我使用的KSOAP创建了以下请求负载:-

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
   <v:Header/>
   <v:Body>
      <n0:ZmobileExecuteReport id="o0" c:root="1" xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
         <Function>EXE</Function>
         <Parameters i:type="n0:Parameters">
            <n0:item>
               <Selname>P_AUART</Selname>
               <Kind>P</Kind>
               <Sign>I</Sign>
               <Option>EQ</Option>
               <Low>Z1</Low>
               <High>Z2</High>
            </n0:item>
         </Parameters>
         <Repid>ZSIMPLE_REPORT0</Repid>
      </n0:ZmobileExecuteReport>
   </v:Body>
</v:Envelope>
谢谢


马丁

我通过这样做修复了它:-

SoapObject parameters = new SoapObject(NAMESPACE, "Parameters");
SoapObject item = new SoapObject("", "item");
从子节点删除命名空间修复了它


我还应该提到的是,当时我正在调用SAP ABAP堆栈上的Web服务

我通过这样做修复了它:-

SoapObject parameters = new SoapObject(NAMESPACE, "Parameters");
SoapObject item = new SoapObject("", "item");
从子节点删除命名空间修复了它

我还应该提到的是,当时我正在调用SAP ABAP堆栈上的Web服务