在我的應用我想發出一個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