我在几天之后就陷入了网络服务解析问题,这是我第一次使用Soap wsdl webservice,我正在使用Xstream解析东西,我成功发送请求但是没有得到正确的响应。 Web服务是这样的。
请求:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="http://tempuri.org/service url">
<soapenv:Header/>
<soapenv:Body>
<com:chkUniqeId soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<uid xsi:type="uniq:UniqueIdgenerationRequest" xmlns:uniq="http://service url/">
<!--You may enter the following 3 items in any order-->
<uid xsi:type="xsd:string">20150910034805007</uid>
<module xsi:type="xsd:string">uniqueid</module>
<type xsi:type="xsd:string">N</type>
</uid>
</com:chkUniqeId>
</soapenv:Body>
响应:
<SOAP-ENV:Envelope xmlns:SOAP- ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:chkUniqeIdResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://tempuri.org/web service url">
<return xsi:type="ns2:UniqueIdgenerationResponse" xmlns:ns2="http://Service url/">
<flag xsi:type="xsd:string">N</flag>
<status xsi:type="xsd:string">Unique ID (20150910034805007) Existing Already</status>
</return>
</ns1:chkUniqeIdResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
任何人都知道如何在Android中处理此类服务