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

Handler processing error #45

Open
Open
@esilvajr

Description

@esilvajr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions