OGeek|极客世界-中国程序员成长平台

标题: ios - iOS 中的 SOAP 请求 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 13:34
标题: ios - iOS 中的 SOAP 请求

我有这个 SOAP 请求,我在 php 中使用它来获取一些信息,但我似乎无法弄清楚如何在 Xcode 中执行此操作,希望有人能指出我正确的方向

<?php
$wsdl_url = "https://www.service.com/mySoapService.wsdl";
$client = new SoapClient($wsdl_url);
var_dump($client->__getFunctions());

try {
    $userName = 'myUsername';
    $password = 'myPassword';
    $result = $client->retrieveUsage(new SoapParam(array("UserId" => $userName, "assword" => $password), "RetrieveUsageRequestType"));

    print '<pre>';
        print_r($result);
    print '</pre>';
} catch (Exception $e) {
    echo $e->getMessage();
}
?>



Best Answer-推荐答案


添加您的 WSDL,创建 stub ,然后开始使用 iOS 应用程序中的 Web 服务。

http://sudzc.com/

我希望这就是你要找的。

享受吧!

关于ios - iOS 中的 SOAP 请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10472333/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4