Skip to content

v1.2.0

Compare
Choose a tag to compare
@veewee veewee released this 28 Jan 10:34
· 33 commits to main since this release
v1.2.0
54af50a

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);

CLI tools

Download a flattened WSDL file directly

Screenshot 2022-01-28 at 10 58 56

Validate the syntax of a WSDL file

Screenshot 2022-01-28 at 10 59 29