Closed Scaenicus closed 7 years ago
Added a pull request: #81
Please try version 0.3.0.4.
I'm sorry, how can I verify that composer loaded 0.3.0.4 because getLastRequest is still not working and in SoapWrapper it is still...
if (is_null($service->getClient())) {
$client = new Client($service->getWsdl(), $service->getOptions());
} else {
$client = $service->getClient();
}
...instead of...
if (is_null($service->getClient())) {
$client = new Client($service->getWsdl(), $service->getOptions());
$service->client($client);
} else {
$client = $service->getClient();
}
Hello,
For debug purposes I wanted to get the last request back.
This code would work in principle:
But the problem is, that I always get a fresh Client instance. I think I found the solution (at least it works for me).
SoapWrapper.php > public function client
Change
to
Now the Client instance, which is implicitly created by public function call, is stored to the service and is found the next time call, or client is accessed.
With kind regards, Philipp