zendframework / zend-soap

Soap component from Zend Framework
BSD 3-Clause "New" or "Revised" License
75 stars 42 forks source link

Handler processing error #45

Open esilvajr opened 7 years ago

esilvajr commented 7 years ago

Hi!

I have a soap server like this:

$this->server = new Server();
$this->server->setWSDL($this->wsdl->getPath())->setClass(Received::class);
$this->server->handler()

If i use that works fine when i call $this->server->handler().

But when i want to get the response and process that before return, like:

$this->server = new Server();
$this->server->setWSDL($this->wsdl->getPath())->setClass(Received::class);
$this->server->setReturnResponse(true); // use return instead of echo in response.
$response = $this->server->handler();

echo $response; //this doesn't works

So when i call $response = $this->server->handler(), doesn't work anymore. Have no errors and have no responses. In postman i get "Could not get any response" and in SoapUI i get "".

if i put a dump('ANYTHING') before the call for "$this->server->handler()" works again.

$this->server = new Server();
$this->server->setWSDL($this->wsdl->getPath())->setClass(Received::class);
$this->server->setReturnResponse(true); // use return instead of echo in response.
dump('foobar');
$response = $this->server->handler();

echo $response; //this works

But my return brokes because that dump.

Anyone know what happening? And how i fix that?

I'm using PHP7.1 and Nginx on a Ubuntu.

weierophinney commented 4 years ago

This repository has been closed and moved to laminas/laminas-soap; a new issue has been opened at https://github.com/laminas/laminas-soap/issues/9.