Working With Soap

After running $request = new Request(); $this->request->isSoap() to check the request type if is Soap,

how do I get the soap xml from the $request.

edited Aug '17

Using method from Request: getRawBody() -> Gets HTTP raw request body

Using method from Request: getRawBody() -> Gets HTTP raw request body

I used php file_get_contents('php://input');

which works but I will for sure try out your suggestion.