From f467eabfd207e63093ec373a718a5ac2d0d61532 Mon Sep 17 00:00:00 2001 From: Fredrik Wallgren Date: Wed, 6 Apr 2011 20:28:54 +0200 Subject: [PATCH] This fixes issue #4. Generators soap client should not use caching. --- src/Generator.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/Generator.php b/src/Generator.php index a892f6bd..916d3ea8 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -46,7 +46,7 @@ class Generator private $dom = null; /** - * + * * * @var Service The service class */ @@ -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) { @@ -140,7 +140,7 @@ private function load() $this->dom = \DOMDocument::load($wsdl); $this->documentation->loadDocumentation($this->dom); - + $this->loadTypes(); $this->loadService(); } @@ -211,7 +211,7 @@ private function loadTypes() // skip arrays continue; } - + $type = null; $numParts = \count($parts); // ComplexType @@ -287,7 +287,7 @@ private function savePhp() { throw new \wsdl2php\Exception('No service loaded'); } - + $output = new \wsdl2php\OutputManager($this->config); // Generate all type classes @@ -305,10 +305,10 @@ private function savePhp() } } } - + $output->save($service, $types); } - + /** * Logs a message to the standard output * @@ -395,4 +395,5 @@ private function findTypenode($name) return $typenode; } -} \ No newline at end of file +} +