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

Iphone 如何使用soapweb服务发送图像数据和其他参数,iphone,ios,soap,Iphone,Ios,Soap,我想通过soap web服务发送图像数据。我的soap消息如下所述 <?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 web服务发送图像数据。我的soap消息如下所述

<?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>

int
一串
一串
Base64二进制
int
我想用base64编码在缓冲文件上添加图像

给我任何可以同时发送maltipart数据或参数的建议或示例代码

谢谢。

尝试使用,它将为iOS生成客户端代码,以便与您的Web服务通信。在您的情况下,它将生成一个方法,其中包含您需要传递的参数。您所需要的只是一个WSDL