I hope this will save someone time. When developing and testing your SOAP server, remember to disable WSDL caching in BOTH client and server:
$ini = ini_set("soap.wsdl_cache_enabled", 0);
![]() |
|
||||||||||
|
CL. SOAP FunctionsВведениеThe SOAP extension can be used to write SOAP Servers and Clients. It supports subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications. ТребованияThis extension makes use of the GNOME xml library. Download and install this library. You will need at least libxml-2.5.4. Установка
This extension is only available if PHP was configured with
Настройка во время выполненияПоведение этих функций зависит от установок в php.ini.
Таблица 1. SOAP Configuration Options
Краткое разъяснение конфигурационных директив.
Предопределенные классыSoapClientКонструктор
Методы
SoapFaultКонструктор
SoapHeaderSoapHeader is a special low-level class for passing or returning SOAP headers. It's just a data holder and it does not have any special methods except its constructor. It can be used in the SoapClient->__soapCall() method to pass a SOAP header or in a SOAP header handler to return the header in a SOAP response. Конструктор
SoapParamSoapParam is a special low-level class for naming parameters and returning values in non-WSDL mode. It's just a data holder and it does not have any special methods except its constructor. Конструктор
SoapServerКонструктор
Методы
SoapVarSoapVar is a special low-level class for encoding parameters and returning values in non-WSDL mode. It's just a data holder and does not have any special methods except the constructor. It's useful when you want to set the type property in SOAP request or response. Конструктор
Предопределенные константыПеречисленные ниже константы определены данным расширением и могут быть доступны только в том случае, если PHP был собран с поддержкой этого расширения или же в том случае, если данное расширение подгружается во время выполнения.
SOAP Functions
dirk at waferthin dot com
20-Jun-2007 04:31
I hope this will save someone time. When developing and testing your SOAP server, remember to disable WSDL caching in BOTH client and server:
jochen dot munz at municons dot com
11-Jun-2007 08:56
When encountering an error message like this
Marcio Annunciato
17-May-2007 02:22
In case your soap response containts an ampersand, in certain cases you might get an "unterminated entity reference" warning and data might appear truncated (related to bug #36795?). Maybe there is a more formal fix or setting, but since I couldn't find anything I came with the following:
albert at jool dot nl
27-Mar-2007 03:59
A note for ppl who use certificates with SOAP under a Windows config: it seems to be required to give the full path to the certificate file - and don't prepend 'file://' :
kroesjnov at hotmail dot com
09-Feb-2007 07:38
If you dont want to manually maintain the classmap, make sure you use the same names for your PHP object classes and your WSDL complexTypes, and use the following code:
Herman Hiddema
07-Feb-2007 06:32
I recently found that when using SoapClient with client certificates (the 'local_cert' and 'passphrase' options), PHP needs to have CURL enabled. (At least with PHP 5 and Apache on Windows)
brephophagist
18-Jan-2007 09:45
For those working from a wsdl full of complex types that just want a class structure to hang your code on and not worry about typing in long parameter lists (or creating a script to do so): wsdl2php is a wonderful time-saver. Gets a structure going so you can go in and add what validation and special data munging you need: http://www.urdalen.no/wsdl2php/
Olaf Krische
21-Nov-2006 01:48
If you use SSL with a cert and password authentication:
Ger
|
|
| © 2007 info@grandviewstudio.com |
| Z058440144362 Z348613067571 |