-
Hello everyone, what is the best way to not parse the result but just stream it directly to a file? Best regards |
Beta Was this translation helpful? Give feedback.
Answered by
veewee
Jun 17, 2021
Replies: 1 comment 2 replies
-
You are most likely better of using an http-client directly for that purpose. (or build a raw request) That way you get a PSR7 HTTP Response, from which you can stream the body resource to a file resource. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
polymed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are most likely better of using an http-client directly for that purpose.
For building the soap request, you might be able to use the
driver::encode()
method:soap-client/src/Phpro/SoapClient/Soap/Driver/ExtSoap/ExtSoapDriver.php
Lines 78 to 81 in a91e2fe
(or build a raw request)
That way you get a PSR7 HTTP Response, from which you can stream the body resource to a file resource.