在我的应用我想发出一个SOAP请求某些URL,将要发送的SOAP请求如下发送SOAP请求
POST /TelLink/WrenchENTService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://WrenchGlobal/GetToDoList"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetToDoList xmlns="http://WrenchGlobal/">
<viPeriod>int</viPeriod>
<vsUserID>string</vsUserID>
</GetToDoList>
</soap:Body>
</soap:Envelope>
在上面的代码中,我将不得不更换“INT”和带有实际值的“字符串”,它将调用服务器上的GetToDoList。我的问题是,我不知道如何将此请求发送到服务器? (使用httppost)任何人都可以帮我吗?
[Android通过HTTP POST(SOAP)发送XML的可能的重复](http://stackoverflow.com/questions/2559948/android-sending-xml-via-http-post-soap) – balexandre