508 CHAPTER 20 WEB SERVICES soap.wsdl_cache_enabled Scope:
508 CHAPTER 20 WEB SERVICES soap.wsdl_cache_enabled Scope: PHP_INI_ALL; Default value: 1 This directive determines whether the WSDL caching feature is enabled. soap.wsdl_cache_dir Scope: PHP_INI_ALL; Default value: /tmp This directive determines the location where WSDL documents are cached. soap.wsdl_cache_ttl Scope: PHP_INI_ALL; Default value: 86400 This directive determines the time, in seconds, that a WSDL document is cached. SoapServer() object SoapServer->SoapServer (mixed wsdl [, array options]) The SoapServer() constructor instantiates a new instance of the SoapServer class in WSDL or non-WSDL mode. If you require WSDL mode, you need to assign the wsdlparameter the WSDL file s location, or else set it to NULL. The discretionary options parameter is an array used to set one or both of the following options: actor: Identifies the SOAP server as an actor, defining its URI. soap_version: Determines the supported SOAP version, and must be set with the syntax SOAP_x_y, where x is an integer specifying the major version number, and y is an integer specifying the corresponding minor version number. For example, SOAP version 1.2 would be assigned as SOAP_1_2. The following example creates a SoapServer object referencing the boxing.wsdl file: $soapserver = new SoapServer(”boxing.wsdl”); Of course, if the WSDL file resides on another server, you can reference it using a valid URI. For example: $soapserver = new SoapServer(”http://www.example.com/boxing.wsdl”); However, creating a SoapServerobject is only one task of several required to create a basic SOAP server. Next, you need to export at least one function, a task accomplished using the addFunction() method, introduced next. Note If you re interested in exposing all methods in a class through the SOAP server, use the method setClass(), introduced later in this section.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.