Skip to content

Commit

Permalink
This fixes issue wsdl2phpgenerator#4. Generators soap client should n…
Browse files Browse the repository at this point in the history
…ot use caching.
  • Loading branch information
walle committed Apr 6, 2011
1 parent 6884491 commit f467eab
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Generator.php
Expand Up @@ -46,7 +46,7 @@ class Generator
private $dom = null;

/**
*
*
*
* @var Service The service class
*/
Expand Down Expand Up @@ -129,7 +129,7 @@ private function load()
try
{
$this->log(_('Loading the wsdl'));
$this->client = new \SoapClient($wsdl);
$this->client = new \SoapClient($wsdl, array('cache_wsdl' => WSDL_CACHE_NONE));
}
catch(\SoapFault $e)
{
Expand All @@ -140,7 +140,7 @@ private function load()
$this->dom = \DOMDocument::load($wsdl);

$this->documentation->loadDocumentation($this->dom);

$this->loadTypes();
$this->loadService();
}
Expand Down Expand Up @@ -211,7 +211,7 @@ private function loadTypes()
// skip arrays
continue;
}

$type = null;
$numParts = \count($parts);
// ComplexType
Expand Down Expand Up @@ -287,7 +287,7 @@ private function savePhp()
{
throw new \wsdl2php\Exception('No service loaded');
}

$output = new \wsdl2php\OutputManager($this->config);

// Generate all type classes
Expand All @@ -305,10 +305,10 @@ private function savePhp()
}
}
}

$output->save($service, $types);
}

/**
* Logs a message to the standard output
*
Expand Down Expand Up @@ -395,4 +395,5 @@ private function findTypenode($name)

return $typenode;
}
}
}

0 comments on commit f467eab

Please sign in to comment.