public function fixTypeInformation(ServiceDefinition $definition) { foreach ($definition->getAllTypes() as $type) { $phpType = $type->getPhpType(); $xmlType = $type->getXmlType(); if (null === $phpType) { throw new \InvalidArgumentException(); } if (null === $xmlType) { $xmlType = $this->getXmlTypeMapping($phpType); } $type->setXmlType($xmlType); } }
/** * @param string $name * @param mixed * * @return mixed */ public function processServiceMethodReturnValue($name, $return) { $methodDefinition = $this->definition->getMethod($name); return $this->responseMessageBinder->processMessage($methodDefinition, $return, $this->definition->getTypeRepository()); }