use Helper constants
This commit is contained in:
parent
1122df8e12
commit
8a886c7eda
|
@ -164,9 +164,9 @@ class WsdlDownloader
|
||||||
$doc->loadXML($xml);
|
$doc->loadXML($xml);
|
||||||
$xpath = new \DOMXPath($doc);
|
$xpath = new \DOMXPath($doc);
|
||||||
$xpath->registerNamespace(Helper::PFX_XML_SCHEMA, Helper::NS_XML_SCHEMA);
|
$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
|
// WSDL include/import
|
||||||
$query = './/wsdl:include | .//wsdl:import'; // TODO
|
$query = './/' . Helper::PFX_WSDL . ':include | .//' . Helper::PFX_WSDL . ':import';
|
||||||
$nodes = $xpath->query($query);
|
$nodes = $xpath->query($query);
|
||||||
if ($nodes->length > 0) {
|
if ($nodes->length > 0) {
|
||||||
foreach ($nodes as $node) {
|
foreach ($nodes as $node) {
|
||||||
|
|
Loading…
Reference in New Issue