Skip to content

Stream/Download large (32 GB) XML files #375

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

You must be logged in to vote

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:

public function encode(string $method, array $arguments): SoapRequest
{
return $this->encoder->encode($method, $arguments);
}

(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.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@polymed
Comment options

@veewee
Comment options

Answer selected by polymed
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