@@ 5017-5037 (lines=21) @@ | ||
5014 | foreach ($this->schemas as $ns => $list) { |
|
5015 | foreach ($list as $xs) { |
|
5016 | $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! |
|
5017 | foreach ($xs->imports as $ns2 => $list2) { |
|
5018 | for ($ii = 0; $ii < count($list2); ++$ii) { |
|
5019 | if (!$list2[$ii]['loaded']) { |
|
5020 | $this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true; |
|
5021 | $url = $list2[$ii]['location']; |
|
5022 | if ($url != '') { |
|
5023 | $urlparts = parse_url($url); |
|
5024 | if (!isset($urlparts['host'])) { |
|
5025 | $url = $wsdlparts['scheme'] . '://' . $wsdlparts['host'] . (isset($wsdlparts['port']) ? ':' . $wsdlparts['port'] : '') . substr($wsdlparts['path'], 0, strrpos($wsdlparts['path'], '/') + 1) . $urlparts['path']; |
|
5026 | } |
|
5027 | if (!in_array($url, $imported_urls)) { |
|
5028 | $this->parseWSDL($url); |
|
5029 | ++$imported; |
|
5030 | $imported_urls[] = $url; |
|
5031 | } |
|
5032 | } else { |
|
5033 | $this->debug('Unexpected scenario: empty URL for unloaded import'); |
|
5034 | } |
|
5035 | } |
|
5036 | } |
|
5037 | } |
|
5038 | } |
|
5039 | } |
|
5040 | // WSDL imports |
|
@@ 5042-5062 (lines=21) @@ | ||
5039 | } |
|
5040 | // WSDL imports |
|
5041 | $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! |
|
5042 | foreach ($this->import as $ns => $list) { |
|
5043 | for ($ii = 0; $ii < count($list); ++$ii) { |
|
5044 | if (!$list[$ii]['loaded']) { |
|
5045 | $this->import[$ns][$ii]['loaded'] = true; |
|
5046 | $url = $list[$ii]['location']; |
|
5047 | if ($url != '') { |
|
5048 | $urlparts = parse_url($url); |
|
5049 | if (!isset($urlparts['host'])) { |
|
5050 | $url = $wsdlparts['scheme'] . '://' . $wsdlparts['host'] . (isset($wsdlparts['port']) ? ':' . $wsdlparts['port'] : '') . substr($wsdlparts['path'], 0, strrpos($wsdlparts['path'], '/') + 1) . $urlparts['path']; |
|
5051 | } |
|
5052 | if (!in_array($url, $imported_urls)) { |
|
5053 | $this->parseWSDL($url); |
|
5054 | ++$imported; |
|
5055 | $imported_urls[] = $url; |
|
5056 | } |
|
5057 | } else { |
|
5058 | $this->debug('Unexpected scenario: empty URL for unloaded import'); |
|
5059 | } |
|
5060 | } |
|
5061 | } |
|
5062 | } |
|
5063 | } |
|
5064 | // add new data to operation data |
|
5065 | foreach ($this->bindings as $binding => $bindingData) { |