| @@ 4754-4775 (lines=22) @@ | ||
| 4751 | foreach ($this->schemas as $ns => $list) { |
|
| 4752 | foreach ($list as $xs) { |
|
| 4753 | $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! |
|
| 4754 | foreach ($xs->imports as $ns2 => $list2) { |
|
| 4755 | for ($ii = 0; $ii < count($list2); $ii++) { |
|
| 4756 | if (! $list2[$ii]['loaded']) { |
|
| 4757 | $this->schemas[$ns]->imports[$ns2][$ii]['loaded'] = true; |
|
| 4758 | $url = $list2[$ii]['location']; |
|
| 4759 | if ($url != '') { |
|
| 4760 | $urlparts = parse_url($url); |
|
| 4761 | if (!isset($urlparts['host'])) { |
|
| 4762 | $url = $wsdlparts['scheme'] . '://' . $wsdlparts['host'] . (isset($wsdlparts['port']) ? ':' .$wsdlparts['port'] : '') . |
|
| 4763 | substr($wsdlparts['path'],0,strrpos($wsdlparts['path'],'/') + 1) .$urlparts['path']; |
|
| 4764 | } |
|
| 4765 | if (! in_array($url, $imported_urls)) { |
|
| 4766 | $this->parseWSDL($url); |
|
| 4767 | $imported++; |
|
| 4768 | $imported_urls[] = $url; |
|
| 4769 | } |
|
| 4770 | } else { |
|
| 4771 | $this->debug("Unexpected scenario: empty URL for unloaded import"); |
|
| 4772 | } |
|
| 4773 | } |
|
| 4774 | } |
|
| 4775 | } |
|
| 4776 | } |
|
| 4777 | } |
|
| 4778 | // WSDL imports |
|
| @@ 4780-4801 (lines=22) @@ | ||
| 4777 | } |
|
| 4778 | // WSDL imports |
|
| 4779 | $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! |
|
| 4780 | foreach ($this->import as $ns => $list) { |
|
| 4781 | for ($ii = 0; $ii < count($list); $ii++) { |
|
| 4782 | if (! $list[$ii]['loaded']) { |
|
| 4783 | $this->import[$ns][$ii]['loaded'] = true; |
|
| 4784 | $url = $list[$ii]['location']; |
|
| 4785 | if ($url != '') { |
|
| 4786 | $urlparts = parse_url($url); |
|
| 4787 | if (!isset($urlparts['host'])) { |
|
| 4788 | $url = $wsdlparts['scheme'] . '://' . $wsdlparts['host'] . (isset($wsdlparts['port']) ? ':' . $wsdlparts['port'] : '') . |
|
| 4789 | substr($wsdlparts['path'],0,strrpos($wsdlparts['path'],'/') + 1) .$urlparts['path']; |
|
| 4790 | } |
|
| 4791 | if (! in_array($url, $imported_urls)) { |
|
| 4792 | $this->parseWSDL($url); |
|
| 4793 | $imported++; |
|
| 4794 | $imported_urls[] = $url; |
|
| 4795 | } |
|
| 4796 | } else { |
|
| 4797 | $this->debug("Unexpected scenario: empty URL for unloaded import"); |
|
| 4798 | } |
|
| 4799 | } |
|
| 4800 | } |
|
| 4801 | } |
|
| 4802 | } |
|
| 4803 | // add new data to operation data |
|
| 4804 | foreach ($this->bindings as $binding => $bindingData) { |
|