564005da93
Soap Server and Client were breaking binary files during transfer due to invalid Mime Message Parser. Now is it working fine with no errors, but the message parser is about to be rewritten into a better form.
28 lines
802 B
PHP
28 lines
802 B
PHP
<?php
|
|
|
|
namespace Fixtures;
|
|
|
|
class DummyServiceHandlerWithIncomingLargeSwa
|
|
{
|
|
/**
|
|
* @param DummyServiceMethodWithIncomingLargeSwaRequest $request
|
|
* @return DummyServiceMethodWithIncomingLargeSwaResponse
|
|
*/
|
|
public function handle(DummyServiceMethodWithIncomingLargeSwaRequest $request)
|
|
{
|
|
if ($request->hasAttachments() === true) {
|
|
foreach ($request->attachmentCollection->attachments as $attachment) {
|
|
file_put_contents(
|
|
__DIR__.'/../../cache/attachment-server-request-'.$attachment->fileName,
|
|
$attachment->content
|
|
);
|
|
}
|
|
}
|
|
|
|
$response = new DummyServiceMethodWithIncomingLargeSwaResponse();
|
|
$response->status = true;
|
|
|
|
return $response;
|
|
}
|
|
}
|