php.net'deki SOAP kılavuzu çok noob dostu olmadığından ve iyi bir örnek bulamadığım için buradaki sorumu burada yayınlayacağım.CURL ile PHP'de SOAP isteği
Böyle görünmesi için PHP SOAP isteği nasıl oluşturabilirim?
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>
unutmayın:
- SSL bağlantısı
Herhangi bir öneri/bağlantılar/örnek çok takdir kullanıcı/geçiş AUTH yoktur.
[PHP :: SABUN] (http://php.net/manual/en/book.soap.php) – J0HN
[ SoapClient sınıfı] (http://www.php.net/manual/en/class.soapclient.php) – hakre