Skip to content

v1.3.0

Compare
Choose a tag to compare
@veewee veewee released this 28 Jan 12:43
· 17 commits to main since this release
v1.3.0
dcf466d

What's Changed

  • Add shortcut functions for applying headers by @veewee in #3

Full Changelog: v1.2.0...v1.3.0

New features

Header builders

$builder = new SoapHeaders(
    new SoapHeader(
        $targetNamespace,
        'x:Auth',
        children(
            namespaced_element($targetNamespace, 'x:user', value('josbos')),
            namespaced_element($targetNamespace, 'x:password', value('topsecret'))
        ),
        // Optionally, you can provide additional configurators for setting
        // SOAP-ENV specific attributes:
        Actor::next(),
        new MustUnderstand()
    ),
    $header2,
    $header3
);

$headers = $doc->build($builder);
$doc->manipulate(new PrependSoapHeaders(...$headers));