在SOAP中的SoapClient请求和Soap curl请求之间的差异 [英] Difference between SoapClient request and Soap curl request in php

查看:438
本文介绍了在SOAP中的SoapClient请求和Soap curl请求之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很困惑

Soap curl请求我在这里找到一个例子
PHP中使用CURL的SOAP请求

Soap curl request I found here an example SOAP request in PHP with CURL

和Soap请求使用 SoapClient PHP
http://php.net/manual/en/class.soapclient.php

and Soap request using SoapClient PHP http://php.net/manual/en/class.soapclient.php

我的问题和疑问是
首先 - 这两个

My question and doubts are First - does these both fill the same purpose.

第二 - 如果它们用于相同目的,则有任何性能差异。

Second - Is there any performance difference if they are used for same purpose.

提前感谢

推荐答案

您是对的,他们填补相同的目的。虽然,SoapClient有很多功能用于支持内置的SOAP请求,并且也在某处使用Curl。

You are right that they fill the same purpose. Though, the SoapClient has a lot of functionality for supporting SOAP requests built in and is using Curl somewhere as well.

正如你在使用Curl的讨论中所看到的,程序员构造了SOAP信封,SoapClient可以为你做这件事。这同样适用于执行方法调用。

As you can see in the discussion on SOAP with Curl the programmer constructs the SOAP envelope, the SoapClient can do that for you. The same holds for doing the method calls.

最后,使用SoapClient更容易。

In the end, it is much easier to use the SoapClient.

这篇关于在SOAP中的SoapClient请求和Soap curl请求之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆