/** * Intercept the soapServer method call in order to handle the call thrue the process method oj the coordinator * @param string $soapOperationName Soap operation name (ie action name) * @param array $soapArgsSoap Params for the operation * @return mixed data, the soap server will transform it in a soap response * Use of reflexion thrue jWSDL in order to map arg array to action params */ function __call($soapOperationName, $soapArgs) { $this->coord->request->params['action'] .= ':' . $soapOperationName; $operationParams = $this->coord->wsdl->getOperationParams($soapOperationName); foreach (array_keys($operationParams) as $i => $paramName) { $this->coord->request->params[$paramName] = $soapArgs[$i]; } $this->coord->process($this->coord->request); return $this->coord->response->data; }
/** * Intercept the soapServer method call in order to handle the call thrue the process method oj the coordinator * @param string $soapOperationName Soap operation name (ie action name) * @param array $soapArgsSoap Params for the operation * @return mixed data, the soap server will transform it in a soap response * Use of reflexion thrue jWSDL in order to map arg array to action params */ function __call($soapOperationName, $soapArgs) { $this->coord->request->params['action'] .= ':' . $soapOperationName; $operationParams = $this->coord->wsdl->getOperationParams($soapOperationName); foreach (array_keys($operationParams) as $i => $paramName) { $this->coord->request->params[$paramName] = $soapArgs[$i]; } $this->coord->process($this->coord->request); $response = $this->coord->response; if (($c = get_class($response)) == 'jResponseRedirect' || $c == 'jResponseRedirectUrl') { return null; } return $this->coord->response->data; }