yiisoft/yii — pull request #1478 by Diego-Rocha (2012-09-26 23:30:25+00:00)
Title: Update framework/web/services/CWsdlGenerator.php

Fixes the following error:

Warning: DOMDocument::loadXML() [domdocument.loadxml]: xmlns:tns: 'some\namespaced\ClassName' is not a valid URI in Entity, line: 4 in \yii\framework\web\services\CWsdlGenerator.php on line 221

No unit test today, just a fastAndDumbErrorTest class:
```php
namespace = 'some\namespaced\ClassName';
$this->serviceName = $this->namespace;

$encoding = 'UTF-8';
$serviceUrl = 'dummy';
$this->buildDOM($serviceUrl,$encoding);
}

private function buildDOM($serviceUrl,$encoding)
{
$xml="
serviceName}\" targetNamespace=\"{$this->namespace}\"
xmlns=\"http://schemas.xmlsoap.org/wsdl/\"
xmlns:tns=\"{$this->namespace}\"
xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"
xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\">";

$dom=new DOMDocument();
$dom->loadXml($xml);

//more code...
}
}

new fastAndDumbErrorTest ();
```