コード例 #1
0
 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);
     }
 }
コード例 #2
0
 /**
  * @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());
 }