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] #123
  • Loading branch information
marco-dc authored and f3l1x committed Jan 10, 2025
1 parent 314df6b commit be63630
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 be63630

Please sign in to comment.