title: How to make proper SOAP request using PHP SoapClient when we see an example
body: <p><br>
  I want to receive data using method GetCruise<br>
  How to do that in php using SoapClient, of course i know all URLs and I've got PartnerName, Password and AgencyCode<br>
  especially i need to know how to construct proper header of envelope using SoapClient::__setSoapHeaders<br><br></p>
  
  <p><a href="https://i.stack.imgur.com/fiueR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fiueR.jpg" alt="enter image description here"></a></p>
  
  <p>GetCruise
  Call:
  Proxy.Availability.GetCruise(“FO11060119”); </p>
  
  <p>Parameters: 
  CruiseCode - the cruise code to be returned </p>
  
  <p>Returns: 
  a fully described cruise (including itinerary and segments of an itinerary).</p>
  
  <p>Example of soap envelope:
  (headers must contain agency data - name paswword etc. i've got it)</p>
  
  <pre><code>SOAPAction: "http://schemas.costacrociere.com/WebAffiliation/GetCruise"
  &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:Header&gt;
  &lt;Agency xmlns="http://schemas.costacrociere.com/WebAffiliation"&gt;
  &lt;Code&gt;1111&lt;/Code&gt;
  &lt;Culture /&gt;
  &lt;/Agency&gt;
  &lt;Partner xmlns="http://schemas.costacrociere.com/WebAffiliation"&gt;
  &lt;Name&gt;AAAA&lt;/Name&gt;
  &lt;Password&gt;XXXX&lt;/Password&gt;
  &lt;/Partner&gt;&lt;/soap:Header&gt;
  &lt;soap:Body&gt;
  &lt;GetCruise xmlns="http://schemas.costacrociere.com/WebAffiliation"&gt;
  &lt;CruiseCode&gt;FO11060119&lt;/CruiseCode&gt;
  &lt;/GetCruise&gt;
  &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>