BeSimpleSoap/ServiceBinding/DocumentLiteralWrappedResponseMessageBinder.php
2010-10-08 14:24:42 +02:00

16 lines
416 B
PHP

<?php
namespace Bundle\WebServiceBundle\ServiceBinding;
use Bundle\WebServiceBundle\ServiceDefinition\Method;
class DocumentLiteralWrappedResponseMessageBinder implements MessageBinderInterface
{
public function processMessage(Method $messageDefinition, $message)
{
$result = new \stdClass();
$result->{$messageDefinition->getName() . 'Result'} = $message;
return $result;
}
}