Skip to content

Commit

Permalink
Update nusoap.php
Browse files Browse the repository at this point in the history
Adjust on wsdl imports. I don't know if "// TODO: handle imports more properly, grabbing them in-line and nesting them" has saned
  • Loading branch information
matheusantunesnandi authored and f3l1x committed Jul 26, 2022
1 parent 93075b9 commit 3ec9caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nusoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4855,12 +4855,12 @@ function fetchWSDL($wsdl)
$imported = 0;
// Schema imports
foreach ($this->schemas as $ns => $list) {
foreach ($list as $xs) {
foreach ($list as $xsKey => $xs) {
$wsdlparts = parse_url($this->wsdl); // this is bogusly simple!
foreach ($xs->imports as $ns2 => $list2) {
for ($ii = 0; $ii < count($list2); $ii++) {
if (array_key_exists($ii, $list2) && (!isset($list2[$ii]['loaded']) || !$list2[$ii]['loaded'])) {
$this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;
@$this->schemas[$ns][$xsKey]->imports[$ns2][$ii]['loaded'] = true;
$url = $list2[$ii]['location'];
if ($url != '') {
$urlparts = parse_url($url);
Expand Down

0 comments on commit 3ec9caf

Please sign in to comment.