English 中文(简体)
What is the best solution for creating a SOAP Server in PHP?
原标题:
  • 时间:2009-11-13 15:53:04
  •  标签:
  • php
  • soap
  • wsdl

I need some advice on which library is the best choice when it comes to creating SOAP servers (and eventually SOAP clients) in PHP.

I know there is built-in functions for this, but is that really the best way to go about it?

Also, if you could attach some arguments as to why a certain library/method is the better, i d be much delighted.

The only requirement i currently have (apart from the obvious client/server part) is that it can generate WSDL.

Does the WSDL version really matter at all? 1.1 or 2.0 what s the real difference/benefit of using 2.0?

最佳回答

I would recommend looking at the Zend_Soap class of Zend Framework.

Its fairly complete and robust and has been available in the framework long enough to have most if not all of its rough spots smoothed out. Plus its part of a framework that is being actively maintained so it will continue to support new standards and any bugs that are found will be fixed.

问题回答

I use PHP s built-in SoapServer class to serve requests because it s implemented in C so it s faster than any other class implemented in PHP (Zend, nusoap).

The limitation here is that SoapServer can t generate WSDL (as of May 11) so i am using Zend SOAP Autodiscovery to generate it.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签