-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello, You can wrap the transport with a 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: |
Beta Was this translation helpful? Give feedback.
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