v1.2.0
What's Changed
Full Changelog: v1.1.0...v1.2.0
New features
SOAP headers through HTTP middleware
use Http\Client\Common\PluginClient;
use Soap\Psr18Transport\Middleware\RemoveEmptyNodesMiddleware;
use Soap\Xml\Builder\Header\Actor;
use Soap\Xml\Builder\Header\MustUnderstand;
use Soap\Xml\Builder\SoapHeader;
$httpClient = new PluginClient(
$psr18Client,
[
new SoapHeaderMiddleware(
new SoapHeader(
$tns,
'x:Auth',
children(
namespaced_element($tns, 'x:user', value('josbos')),
namespaced_element($tns, 'x:password', value('topsecret'))
)
),
new SoapHeader($tns, 'Acting', Actor::next()),
new SoapHeader($tns, 'Understanding', new MustUnderstand())
)
]
);