use Helper constants

This commit is contained in:
Andreas Schamberger 2011-12-17 11:10:08 +01:00
parent 1122df8e12
commit 8a886c7eda
1 changed files with 2 additions and 2 deletions

View File

@ -164,9 +164,9 @@ class WsdlDownloader
$doc->loadXML($xml);
$xpath = new \DOMXPath($doc);
$xpath->registerNamespace(Helper::PFX_XML_SCHEMA, Helper::NS_XML_SCHEMA);
$xpath->registerNamespace('wsdl', 'http://schemas.xmlsoap.org/wsdl/'); // TODO add to Helper
$xpath->registerNamespace(Helper::PFX_WSDL, Helper::NS_WSDL);
// WSDL include/import
$query = './/wsdl:include | .//wsdl:import'; // TODO
$query = './/' . Helper::PFX_WSDL . ':include | .//' . Helper::PFX_WSDL . ':import';
$nodes = $xpath->query($query);
if ($nodes->length > 0) {
foreach ($nodes as $node) {