Zend_Soap_Server constructor should be used a bit differently for
WSDL and non-WSDL modes.
Zend_Soap_Server constructor takes two optional parameters
when it works in WSDL mode:
$wsdl, which is an URI of a WSDL file [22].-
$options- options to create SOAP server object [23].The following options are recognized in the WSDL mode:
'soap_version' ('soapVersion') - soap version to use (SOAP_1_1 or SOAP_1_2).
'actor' - the actor URI for the server.
-
'classmap' ('classMap') which can be used to map some WSDL types to PHP classes.
The option must be an array with WSDL types as keys and names of PHP classes as values.
'encoding' - internal character encoding (UTF-8 is always used as an external encoding).
'wsdl' which is equivalent to
setWsdl($wsdlValue)call.
The first constructor parameter must be set to
NULL if you plan to use Zend_Soap_Server
functionality in non-WSDL mode.
You also have to set 'uri' option in this case (see below).
The second constructor parameter ($options) is an array with
options to create SOAP server object
[24].
The following options are recognized in the non-WSDL mode:
'soap_version' ('soapVersion') - soap version to use (SOAP_1_1 or SOAP_1_2).
'actor' - the actor URI for the server.
-
'classmap' ('classMap') which can be used to map some WSDL types to PHP classes.
The option must be an array with WSDL types as keys and names of PHP classes as values.
'encoding' - internal character encoding (UTF-8 is always used as an external encoding).
'uri' (required) - URI namespace for SOAP server.




