3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //Create the client object $soapclient = new SoapClient('http://172.30.10.101/tvwebservices/Login.asmx?WSDL'); //Use the functions of the client, the params of the function are in //the associative array /*$params = '<?xml version="1.0" encoding="utf-16"?> <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> <tryLogin xmlns="http://www.tourvisio.com/"> <db>TVWEB</db> <agency>B2C</agency> <user>B2C</user> <pwd>1</pwd> </tryLogin> </soap:Body> </soap:Envelope'; */ $params=array('db' => 'TVWEB', 'agency' => 'B2C', 'user' =>'B2C', 'pwd' => '1'); $response = $soapclient->tryLogin($params); $key= $response->tryLoginResult->AuthKey; echo $key;
based on RPW3G
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/jIWq5:4 Stack trace: #0 {main} thrown in /in/jIWq5 on line 4
Process exited with code 255.
Output for 5.4.10 - 5.6.21
Fatal error: Class 'SoapClient' not found in /in/jIWq5 on line 4
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://172.30.10.101/tvwebservices/Login.asmx?WSDL' : failed to load external entity "http://172.30.10.101/tvwebservices/Login.asmx?WSDL" in /in/jIWq5:4 Stack trace: #0 /in/jIWq5(4): SoapClient->SoapClient('http://172.30.1...') #1 {main} thrown in /in/jIWq5 on line 4
Process exited with code 255.