added TypeRepository managing all mappings from php to xml types; removed classmap generation from SoapServerFactory, this will be done by TypeRepository::createComplexTypeMap(...);
Conflicts: Resources/config/webservice.xml Soap/SoapServerFactory.php Util/QName.php WebServiceContext.php
This commit is contained in:
committed by
Francis Besset
parent
5da442b716
commit
76e7f42ccb
@ -18,6 +18,20 @@ class QName
|
||||
private $namespace;
|
||||
private $name;
|
||||
|
||||
public static function isPrefixedQName($qname)
|
||||
{
|
||||
return false !== strpos($qname, ':') ? true : false;
|
||||
}
|
||||
|
||||
public static function fromPrefixedQName($qname, $resolveNamespacePrefixCallable)
|
||||
{
|
||||
Assert::thatArgument('qname', self::isPrefixedQName($qname));
|
||||
|
||||
list($prefix, $name) = explode(':', $qname);
|
||||
|
||||
return new self(call_user_func($resolveNamespacePrefixCallable, $prefix), $name);
|
||||
}
|
||||
|
||||
public static function fromPackedQName($qname)
|
||||
{
|
||||
Assert::thatArgument('qname', preg_match('/^\{(.+)\}(.+)$/', $qname, $matches));
|
||||
@ -28,7 +42,7 @@ class QName
|
||||
public function __construct($namespace, $name)
|
||||
{
|
||||
$this->namespace = $namespace;
|
||||
$this->name = $name;
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getNamespace()
|
||||
|
Reference in New Issue
Block a user