diff --git a/src/nusoap.php b/src/nusoap.php index bed610e..3100bbb 100644 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -4465,8 +4465,12 @@ function parseRequest($headers, $data) $this->debug('methodname: ' . $this->methodname . ' methodURI: ' . $this->methodURI); // get/set custom response tag name - $outputMessage = $this->wsdl->getOperationData($this->methodname)['output']['message']; - $this->responseTagName = $outputMessage; + $opData = $this->wsdl->getOperationData($this->methodname); + if (!isset($opData['output']['name'])) { + $this->debug('No output name in WSDL for operation ' . $this->methodname); + $this->setError('Operation ' . $this->methodname . ' not present in WSDL'); + return false; + } $this->debug('responseTagName: ' . $this->responseTagName . ' methodURI: ' . $this->methodURI); $this->debug('calling parser->get_soapbody()');