如何使用SOAP Web服务发送图像数据和其他参数

时间:2012-07-09 13:53:38

标签: iphone ios soap

我想通过soap web服务发送图像数据。我的肥皂信息如下所述。

<?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>
<TestFile xmlns="http://tempuri.org/">
  <userID>int</userID>
  <FileTitle>string</FileTitle>
  <FileName>string</FileName>
  <BufferFile>base64Binary</BufferFile>
  <languageID>int</languageID>
</TestFile>
</soap:Body>
</soap:Envelope>

我希望通过base64编码在bufferFile上添加图像。

给我任何可以同时发送恶意部分数据或参数的建议或示例代码。

感谢。

1 个答案:

答案 0 :(得分:1)

尝试使用SudzC生成iOS的客户端代码,与WebService进行通信。在您的情况下,它将生成一个方法,您需要传递参数。您需要拥有的只是WSDL。