Problem was I wasn't send or reading correctly.
According to this I need to read the content as $response->getBody(true)
to read it as a string.
Some of you might have noticed the $content->asXML()
in the post function. So I actually need to do $response->xml()
, and remember to put the ->asXML()
on the sent content. Now it works!