Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Handler processing error #45

Open
esilvajr opened this issue Sep 15, 2017 · 1 comment
Open

Handler processing error #45

esilvajr opened this issue Sep 15, 2017 · 1 comment

Comments

@esilvajr
Copy link

esilvajr commented Sep 15, 2017

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
Copy link
Member

This repository has been closed and moved to laminas/laminas-soap; a new issue has been opened at laminas/laminas-soap#9.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants