Skip to content

How to access SoapClient properties #509

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

You must be logged in to vote

Hello,

You can wrap the transport with a TraceableTransport and access that information from that service:
https://github.com/php-soap/ext-soap-engine?tab=readme-ov-file#example-usage

Do note that it's probably a better idea to add an HTTP logger instead: When logging requests and responses at transport level, you don't get to see any manipulations that are being done by other HTTP-level plugins. This gives you a central trustworthy place for you to detect the message contents.

More info:
https://github.com/php-soap/psr18-transport?tab=readme-ov-file#httplug-middleware

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GoldXD
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