function __construct() { $this->configureWsdlEvent(); // collect via public object $this->collectServiceObjects(); parent::__construct(); // collect via wsdl $this->collectServiceWsdl(); }
/** * Override original configureWsdl to support binding style overriding via outer-world ($_REQUEST var: wsdl_style) */ function configureWSDL($serviceName, $namespace = false, $endpoint = false, $style = 'rpc', $transport = 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace = false) { if (isset($_REQUEST['binding_style'])) { $this->mCustomBindingStyle = $_REQUEST['binding_style']; } if ($this->mCustomBindingStyle == 'rpc' || $this->mCustomBindingStyle == 'document') { $style = (string) $this->mCustomBindingStyle; } parent::configureWSDL($serviceName, $namespace, $endpoint, $style, $transport, $schemaTargetNamespace); }