private function addSoapServerClassmapEntry(&$classmap, Type $type)
 {
     // TODO: fix this hack
     if ($type->getXmlType() === null) {
         return;
     }
     $xmlType = QName::fromPackedQName($type->getXmlType())->getName();
     $phpType = $type->getPhpType();
     if (isset($classmap[$xmlType]) && $classmap[$xmlType] != $phpType) {
         // log warning
     }
     $classmap[$xmlType] = $phpType;
 }
Пример #2
0
 protected function createSoapHeader(Header $headerDefinition, $data)
 {
     $qname = QName::fromPackedQName($headerDefinition->getType()->getXmlType());
     return new SoapHeader($qname->getNamespace(), $qname->getName(), $data);
 }