Bu aracılığıyla (weather) örnek SOAP temel kullanımını öğrenmek istiyorum. Bu veriler nasıl işlemeye değer?Php'de nasıl sabun sınıfı kullanılır (örneğin)?
İstek:
POST /globalweather.asmx HTTP/1.1
Host: www.webservicex.net
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetWeather xmlns="http://www.webserviceX.NET">
<CityName>string</CityName>
<CountryName>string</CountryName>
</GetWeather>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
Yanıt:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetWeatherResponse xmlns="http://www.webserviceX.NET">
<GetWeatherResult>string</GetWeatherResult>
</GetWeatherResponse>
</soap12:Body>
</soap12:Envelope>
@Topener Bu konuda bilgi buldum ama bir toturial değil. Özellikle php.net/manual/en/book.soap.php için değil. Eğer büyük bir toturial yayınlarsanız cevabınızı kabul edeceğim (Bununla büyük demek istediğim: bu örnekle yapabilirim) –
Topener, katılmıyorum. Bu site sadece kod için değil, ilgili soruları programlamak içindir. Soru çok açık uçlu olmadığı sürece iyi olmalı. Bu soruya verilen büyük cevaplar, yararlı kaynaklara, el kitabına ve başka yerlere ya da basit bir örneğe bağlantılar olabilir. –