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:
Christian Kerl
2011-07-17 15:08:46 +02:00
committed by Francis Besset
parent 5da442b716
commit 76e7f42ccb
7 changed files with 170 additions and 57 deletions

View File

@ -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()