Dado que el manual de SOAP en php.net no es muy novato y no pude encontrar ningún buen ejemplo, publicaré mi pregunta aquí.Solicitud de SOAP en PHP con CURL
¿Cómo puedo crear una solicitud PHP SOAP para que se vea así?
POST /MySERVER/myWSDLservice.asmx HTTP/1.1
Host: connection.mywebsite.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://connection.mywebsite.com/MySERVER/GetCarType"
<?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>
<GetCarType xmlns="http://connection.mywebsite.com/MySERVER/">
<IDNumber>string</IDNumber>
</GetCarType>
</soap:Body>
</soap:Envelope>
Tenga en cuenta:
- hay usuario/auth
- conexión SSL
Cualquier sugerencia/enlaces/ejemplo muy apreciada.
[PHP :: de SOAP] (http://php.net/manual/en/book.soap.php) – J0HN
[ La clase SoapClient] (http://www.php.net/manual/en/class.soapclient.php) – hakre