I try to make an example from Eurotours XML interface but all SOAP function calls give me
PHP Fatal error: Uncaught SoapFault exception: [HTTP] Unauthorized
Here is my code:
$soapClient = new SoapClient("https://ws.eurotours.at/accommodation/development/AccommodationService?wsdl",array('trace' => true));
$functions = $soapClient -> __getFunctions();
$soapClient -> getLanguages(array("Client"=>"TESTXMLB2B"));
it is only the client from test on documentation, I don't know if I wrong with something.
Here is my full exception and I want know if really is an authorized problem or only because I'm doing a mistake when make the call:
object(SoapFault)#2 (9) {
  ["message":protected]=>
  string(12) "Unauthorized"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  int(0)
  ["file":protected]=>
  string(34) "/home/laurentiu/teste/testswap.php"
  ["line":protected]=>
  int(5)
  ["trace":"Exception":private]=>
  array(3) {
    [0]=>
    array(4) {
      ["function"]=>
      string(11) "__doRequest"
      ["class"]=>
      string(10) "SoapClient"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(5) {
        [0]=>
        string(224) "<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.eurotours.at/"><SOAP-ENV:Body><ns1:getLanguages/></SOAP-ENV:Body></SOAP-ENV:Envelope>
"
        [1]=>
        string(74) "https://ws.eurotours.at:443/accommodation/development/AccommodationService"
        [2]=>
        string(0) ""
        [3]=>
        int(1)
        [4]=>
        int(0)
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(34) "/home/laurentiu/teste/testswap.php"
      ["line"]=>
      int(5)
      ["function"]=>
      string(6) "__call"
      ["class"]=>
      string(10) "SoapClient"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(2) {
        [0]=>
        string(12) "getLanguages"
        [1]=>
        array(1) {
          [0]=>
          array(1) {
            ["Client"]=>
            string(10) "TESTXMLB2C"
          }
        }
      }
    }
    [2]=>
    array(6) {
      ["file"]=>
      string(34) "/home/laurentiu/teste/testswap.php"
      ["line"]=>
      int(5)
      ["function"]=>
      string(12) "getLanguages"
      ["class"]=>
      string(10) "SoapClient"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(1) {
        [0]=>
        array(1) {
          ["Client"]=>
          string(10) "TESTXMLB2C"
        }
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
  ["faultstring"]=>
  string(12) "Unauthorized"
  ["faultcode"]=>
  string(4) "HTTP"
};
 
     
    