diff --git a/src/Helper.php b/src/Helper.php index c946811..8a9a817 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -28,7 +28,7 @@ public static function extractMessageData($httpMessage) // The assumption for now is that a syncronous response will always be XML. if ($httpMessage instanceof ResponseInterface) { - $xmlString = (string)$httpMessage->getBody(); + $xmlString = $httpMessage->getBody()->getContents(); $xmlString = simplexml_load_string($xmlString); return static::parseXmlElement($xmlString);