Converting this cURL for Guzzle
You can make use of the Client::post()
magic method to create a HTTP POST request:
$client = new Client($this->url);$request = $client->post( '', ['Content-Type' => 'text/xml; charset=UTF8'], $xml, ['timeout' => 120]);$response = $request->send()->xml();;