title: CURL not working for SOAP enveloped XML request
body: <p>I tried to get response from SOAP request using CURL but can't get any success. I got error like,</p>
  
  <pre><code>The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
  </code></pre>
  
  <p>I used code,</p>
  
  <pre><code>$envelope = '&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:aut="http://schemas.tourico.com/webservices/authentication" xmlns:hot="http://tourico.com/webservices/hotelv3" xmlns:hot1="http://schemas.tourico.com/webservices/hotelv3"&gt;
     &lt;soapenv:Header&gt;
        &lt;aut:AuthenticationHeader&gt;
           &lt;aut:LoginName&gt;vibXXX&lt;/aut:LoginName&gt;
           &lt;aut:Password&gt;111111&lt;/aut:Password&gt;
           &lt;!--Optional:--&gt;
           &lt;aut:Culture&gt;en_US&lt;/aut:Culture&gt;
           &lt;!--Optional:--&gt;
           &lt;aut:Version&gt;7.123&lt;/aut:Version&gt;
        &lt;/aut:AuthenticationHeader&gt;
     &lt;/soapenv:Header&gt;
     &lt;soapenv:Body&gt;
        &lt;hot:SearchHotels&gt;
           &lt;!--Optional:--&gt;
           &lt;hot:request&gt;
              &lt;!--Optional:--&gt;
              &lt;hot1:Destination&gt;NYC&lt;/hot1:Destination&gt;
              &lt;!--Optional:--&gt;
              &lt;hot1:HotelCityName&gt;New York&lt;/hot1:HotelCityName&gt;
              &lt;!--Optional:--&gt;
              &lt;hot1:HotelLocationName&gt;&lt;/hot1:HotelLocationName&gt;
              &lt;!--Optional:--&gt;
              &lt;hot1:HotelName&gt;&lt;/hot1:HotelName&gt;
              &lt;hot1:CheckIn&gt;2014-02-15&lt;/hot1:CheckIn&gt;
              &lt;hot1:CheckOut&gt;2014-02-18&lt;/hot1:CheckOut&gt;
              &lt;!--Optional:--&gt;
              &lt;hot1:RoomsInformation&gt;
                 &lt;!--Zero or more repetitions:--&gt;
                 &lt;hot1:RoomInfo&gt;
                    &lt;hot1:AdultNum&gt;2&lt;/hot1:AdultNum&gt;
                    &lt;hot1:ChildNum&gt;0&lt;/hot1:ChildNum&gt;
                    &lt;!--Optional:--&gt;
                    &lt;hot1:ChildAges&gt;
                       &lt;!--Zero or more repetitions:--&gt;
                       &lt;hot1:ChildAge age="0"/&gt;
                    &lt;/hot1:ChildAges&gt;
                 &lt;/hot1:RoomInfo&gt;
              &lt;/hot1:RoomsInformation&gt;
              &lt;hot1:MaxPrice&gt;0&lt;/hot1:MaxPrice&gt;
              &lt;hot1:StarLevel&gt;0&lt;/hot1:StarLevel&gt;
              &lt;hot1:AvailableOnly&gt;1&lt;/hot1:AvailableOnly&gt;
              &lt;hot1:PropertyType&gt;NotSet&lt;/hot1:PropertyType&gt;
              &lt;hot1:ExactDestination&gt;1&lt;/hot1:ExactDestination&gt;
           &lt;/hot:request&gt;
        &lt;/hot:SearchHotels&gt;
     &lt;/soapenv:Body&gt;
  &lt;/soapenv:Envelope&gt;';
  
  $soap_do = curl_init();
  
  curl_setopt($soap_do, CURLOPT_URL,            "http://demo-hotelws.touricoholidays.com/hotelflow.svc?wsdl" );
  curl_setopt($soap_do, CURLOPT_CONNECTTIMEOUT, 10);
  curl_setopt($soap_do, CURLOPT_TIMEOUT,        10);
  curl_setopt($soap_do, CURLOPT_RETURNTRANSFER, true );
  curl_setopt($soap_do, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($soap_do, CURLOPT_SSL_VERIFYHOST, false);
  curl_setopt($soap_do, CURLOPT_POST,           true );            
  curl_setopt($soap_do, CURLOPT_POSTFIELDS,     $envelope); 
  curl_setopt($soap_do, CURLOPT_VERBOSE, TRUE); 
  curl_setopt($soap_do, CURLOPT_HTTPHEADER, array("Content-Type: text/xml","SOAPAction: \"http://demo-hotelws.touricoholidays.com/HotelFlow.svc/bas\"", "Content-length: ".strlen($envelope))); 
  
  $result = curl_exec($soap_do);
  echo "&lt;pre&gt;";
  print_r($result);
  exit;
  </code></pre>
  
  <p>I got response in SOAPUI software but not working with php code.</p>
  
  <p>Can anyone help me to sorted out this problem? </p>
  
  <p>I have also tried with SOAP client. Its also not works I previously ask question <a href="https://stackoverflow.com/questions/21521785/soap-request-for-tourico-webservice-implementation">https://stackoverflow.com/questions/21521785/soap-request-for-tourico-webservice-implementation</a></p>
  
  <p><img src="https://i.stack.imgur.com/vuRsu.png" alt="enter image description here"></p>