title: "Unable to parse URL" exception after SOAP request
body: <p>I'm trying to use a soap service with php, but it seems that the request format that php creates couldn't be interpreted by the service. Simple example I have so far:</p>
  
  <pre><code>ini_set("soap.wsdl_cache_enabled", "0");
  $client = new SoapClient('http://publicbetawebservices.hotel.de/V2_8/FreeHotelSearchWebService.svc?WSDL',array("trace"=&gt;1));
  
  try {
    $response = $client-&gt;GetWebservicesVersion();
  } catch(Exception $e){ 
    print_r($e);
  }
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>SoapFault Object
  (
      [message:protected] =&gt; Unable to parse URL
      [string:Exception:private] =&gt;
      [code:protected] =&gt; 0
      [file:protected] =&gt; /var/www/test.php
      [line:protected] =&gt; 6
      [trace:Exception:private] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [function] =&gt; __doRequest
                      [class] =&gt; SoapClient
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservices.hotel.de/V2_8/"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:GetWebservicesVersion/&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
  
                              [1] =&gt;
                              [2] =&gt; http://webservices.hotel.de/V2_8/IBaseService/GetWebservicesVersion
                              [3] =&gt; 1
                              [4] =&gt; 0
                          )
  
                  )
  
              [1] =&gt; Array
                  (
                      [file] =&gt; /var/www/test.php
                      [line] =&gt; 6
                      [function] =&gt; __call
                      [class] =&gt; SoapClient
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                              [0] =&gt; GetWebservicesVersion
                              [1] =&gt; Array
                                  (
                                  )
  
                          )
  
                  )
  
              [2] =&gt; Array
                  (
                      [file] =&gt; /var/www/test.php
                      [line] =&gt; 6
                      [function] =&gt; GetWebservicesVersion
                      [class] =&gt; SoapClient
                      [type] =&gt; -&gt;
                      [args] =&gt; Array
                          (
                          )
  
                  )
  
          )
  
      [previous:Exception:private] =&gt;
      [faultstring] =&gt; Unable to parse URL
      [faultcode] =&gt; HTTP
  )
  </code></pre>
  
  <p>The resulting request xml is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://webservices.hotel.de/V2_8/"&gt;
     &lt;SOAP-ENV:Body&gt;
        &lt;ns1:GetWebservicesVersion /&gt;
     &lt;/SOAP-ENV:Body&gt;
  &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>But as of the documentation of the webservice, it is expecting:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;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"&gt;
   &lt;soap:Body&gt;
   &lt;GetWebservicesVersion xmlns="http://webservices.hotel.de/V2_8/"/&gt;
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Is there a way to get the request xml to the expected format?</p>