PHP program to temperature conversion web service.

Array ( [Fahrenheit] => 100 )

Tempconvert Web Service Response from a PHP Client

PHP Array Response

Array ( [FahrenheitToCelsiusResult] => 37.7777777777778 )

Request

POST /xml/tempconvert.asmx HTTP/1.0
Host: www.w3schools.com
User-Agent: NuSOAP/0.9.5 (1.123)
Content-Type: text/xml; charset=ISO-8859-1
SOAPAction: "https://www.w3schools.com/xml/FahrenheitToCelsius"
Content-Length: 483

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="https://www.w3schools.com/xml/"><SOAP-ENV:Body><FahrenheitToCelsius xmlns="https://www.w3schools.com/xml/"><Fahrenheit>100</Fahrenheit></FahrenheitToCelsius></SOAP-ENV:Body></SOAP-ENV:Envelope>

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0,public
Content-Type: text/xml; charset=utf-8
Date: Sun, 17 Jan 2021 22:44:27 GMT
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Frame-Options: SAMEORIGIN
X-Powered-By: ASP.NET
Content-Length: 415

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><FahrenheitToCelsiusResponse xmlns="https://www.w3schools.com/xml/"><FahrenheitToCelsiusResult>37.7777777777778</FahrenheitToCelsiusResult></FahrenheitToCelsiusResponse></soap:Body></soap:Envelope>