Skip to content

SoapHeaderMiddleware Example not working because of type error - how to use correctly? #542

Answered by veewee
trailsnail asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like you are injecting PHP's https://www.php.net/manual/en/class.soapheader.php instead of Soap\Xml\Builder\SoapHeader?

The provided example should work, given it is covered by unit tests:
https://github.com/php-soap/psr18-transport/blob/main/tests/Unit/Middleware/SoapHeaderMiddlewareTest.php

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by trailsnail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants