Releases: php-soap/wsdl
Releases · php-soap/wsdl
v1.2.0
What's Changed
Full Changelog: v1.1.0...v1.2.0
New features
FlatteningLoader
Can be used as a decorator around any other WSDL loader.
It searches for wsdl:import, xsd:import, xsd:include and xsd:redefines.
Downloads those files, groups them per schema target namespace and embeds them in a single WSDL.
use Soap\Wsdl\Loader\FlatteningLoader;
use Soap\Wsdl\Loader\StreamWrapperLoader;
$loader = new FlatteningLoader(new StreamWrapperLoader());
$contents = $loader($wsdl);
CallbackLoader
Gives you full flexibility over the loading process!
use Soap\Wsdl\Loader\CallbackLoader;
$loader = new CallbackLoader(static function (string $location) use ($loader, $style): string {
$style->write('> Loading '.$location . '...');
$result = $loader($location);
$style->writeln(' DONE!');
return $result;
})
$contents = $loader($wsdl);