Which is better PHP SOAP or NuSOAP ? Please help me out ?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Although there is some nuance to mention, I think NuSoap is better:
Using nusoap, no need to write the WSDL file
Nusoap is no longer maintained. It is supported up to version 4.X of PHP. Newer versions can start giving problems
PHP SOAP is available since PHP 5.0.1 . If you are in PHP4, you have to use NuSOAP.
Native PHP codes are usually better in performance & relatively bug free, so if PHP SOAP is available, use it. More, NuSOAP has not much documentation on their official website.
Another advantage of using Nusoap is that the result you get is already in an array. Normal PHP you get an object and you need to convert into an array yourself. and I did a small bench mark Nusoap is micro seconds faster than my own implementation including converting into an array. Nusoap = -1370852340.1761 Native PHP = -1370852340.2057