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 6e0c95b commit b73a65b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/Generator.php
Expand Up @@ -44,7 +44,7 @@ class wsdl2phpGenerator
private $dom = null;

/**
*
*
*
* @var Service The service class
*/
Expand Down Expand Up @@ -127,7 +127,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 @@ -138,7 +138,7 @@ private function load()
$this->dom = DOMDocument::load($wsdl);

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

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

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

$output = new wsdl2phpOutputManager($this->config);

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

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

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

return $typenode;
}
}
}

0 comments on commit b73a65b

Please sign in to comment.