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

22 lines
501 B
PHP

<?php
namespace Bundle\WebServiceBundle\ServiceBinding;
use Bundle\WebServiceBundle\ServiceDefinition\Method;
class RpcLiteralRequestMessageBinder implements MessageBinderInterface
{
public function processMessage(Method $messageDefinition, $message)
{
$result = array();
$i = 0;
foreach($messageDefinition->getArguments() as $argument)
{
$result[$argument->getName()] = $message[$i];
$i++;
}
return $result;
}
}