【发布时间】:2014-01-27 20:15:25
【问题描述】:
我正在使用 SOAP 服务将数据从服务器获取到我的 ios 应用程序。现在我需要将一些数据从应用程序上传到服务器。我怎样才能从 SOAP 消息中做到这一点。这是我的 SOAP 服务。
POST /NoteService.asmx HTTP/1.1
Host: ios.myurl.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.myurl.com/CreateNoteUsingXMl"
<?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>
<CreateNoteUsingXMl xmlns="http://www.myurl.com">
<AccountID>string</AccountID>
<Username>string</Username>
<Mypass>string</Mypass>
<NoteXML>string</NoteXML>
<isSign>int</isSign>
<noteID>long</noteID>
</CreateNoteUsingXMl>
</soap:Body>
</soap:Envelope>
如何在 POST 中传递 accountid、username 等参数。
【问题讨论】:
标签: ios web-services soap