title: Create WSSE Auth SOAP call for WebServices API in PHP using SoapClient
body: <p>I have the following from a vendor API:
  <img src="https://i.stack.imgur.com/Q66p7.jpg" alt="enter image description here"></p>
  
  <p>and I neeed to create a Soap call using php. How do I go about doing that?
  so far I have this: but it does not work:</p>
  
  <pre><code>private function booking_soap_connect() {
          // the wsdl URL of your service to test 
          $serviceWsdl = 'https://apitest.com/bookingapi.asmx?WSDL';
  
          // the parmeters to initialize the client with 
          $serviceParams = array(
              'login' =&gt; 'un',
              'password' =&gt; 'pw'
          );
  
          // create the SOAP client 
          $client = new SoapClient($serviceWsdl, $serviceParams);
  
          $data['Brand'] = "All";
          $data['TourCode'] = "QBE";
          $data['DepartureCode'] = "8000321";
          $data['VendorId'] = "test";
          $data['VendorPassword'] = "test";
  
          $results = $client-&gt;GVI_DepartureInfo($data)
          echo $results;
      }
  </code></pre>
  
  <p>Please help</p>