There is a webservice (WSDL) with a lot of functions. I want to call one of these functions with PHP. The webservice provides a documentation wherein they put a format including header and xml, but I have no idea how I need to send the request from PHP. I searched for a couple of hours now, and I simply don't know.
An example request they provided:
POST POSTURL HTTP/1.1
Host: HOST
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "SOAPLOCATION"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Version xmlns="URL" />
</soap:Body>
</soap:Envelope>
The response I should receive is also given, but I can't even send the request.
How do I send a request with PHP to get the response? I tried some PHP SoapClient things, but I can't find a easy to read tutorial or some clear explanation...
If anyone can help me, that would be great!