如何使用AFNetworking通过身份验证向SOAP发出请求,返回子

时间:2015-12-16 10:29:08

标签: ios json soap afnetworking afnetworking-2

我有一个带有身份验证密钥的soap Web服务,它返回json内容。

这是请求

<?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>
    <FlightSearch xmlns="http://someurl.com/">
      <Authkey>string</Authkey>
      <from>string</from>
      <SesID>string</SesID>
    </FlightSearch>
  </soap:Body>
</soap:Envelope>

这是回复

<?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>
    <FlightSearchResponse xmlns="http://someurl.com/" />
  </soap:Body>
</soap:Envelope>

如何使用AFNetworking来使用来自Web服务的数据

0 个答案:

没有答案