Skip to content

Commit

Permalink
Fix undefined output -> $this->portTypes[$bindingData['portType']][$o…
Browse files Browse the repository at this point in the history
…peration] contributte#123
  • Loading branch information
marco-dc authored Oct 28, 2024
1 parent 392ca17 commit aaee1b0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()');
Expand Down

0 comments on commit aaee1b0

Please sign in to comment.