title: eWay Payment Gateway
body: <p>I'm trying to implement the recurring web service from eway(australia).How ever I could not get it to work.</p>
  
  <p>I keep on getting the messeage </p>
  
  <p>"The element 'rebillCustomerCreate' in namespace '<a href="http://www.eway.com.au/gateway/rebill/manageRebill" rel="nofollow noreferrer">http://www.eway.com.au/gateway/rebill/manageRebill</a>' has incomplete content. List of possible elements expected: 'CustomerRef'."</p>
  
  <p>This is the WSDL: <a href="https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl" rel="nofollow noreferrer">https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl</a></p>
  
  <p>I am new to SOAP. Trying to implement it in PHP. Can anyone please point out what I did wrong?</p>
  
  <p>Here is my php Code:</p>
  
  <pre><code>&lt;?php
  $URL = "https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl";
  $option = array("trace"=&gt;true);
  $client = new SOAPClient($URL, $option);
  $functions = $client-&gt;__getFunctions();
  $headeroptions =array('eWAYCustomerID'=&gt;"87654321",'Username'=&gt;"test@eway.com.au","Password"=&gt;"test");
  $header = new SOAPHeader('http://www.eway.com.au/gateway/rebill/manageRebill', 'eWAYHeader',$headeroptions);
  
  $bodyoptions = array(
      "customerTitle" =&gt; "Mr",
      "customerFirstName" =&gt; "firstname",
      "customerLastName" =&gt; "lastname",
      "customerAddress" =&gt; "address",
      "customerSuburb" =&gt; "someniceplace",
      "customerState" =&gt; "somenicestate",
      "customerCompany" =&gt; "somecompany",
      "customerPostCode" =&gt; "411026",
      "customerCountry" =&gt; "australia",
      "customerEmail" =&gt; "test@eway.com",
      "customerFax" =&gt; "123456",
      "customerPhone1" =&gt; "123456",
      "customerPhone2" =&gt; "123456",
      "customerRef" =&gt; "abc123",
      "customerJobDesc" =&gt; "Developer",
      "customerComments" =&gt; "Make it work",
      "customerURL" =&gt; "www.nicesite.com"
  );
  
  try{
      $response = $client-&gt;__soapCall("CreateRebillCustomer", $bodyoptions,NULL,$header,$outputHeader);
      echo $client-&gt;__getLastRequest();
      //$response = $client-&gt;CreateRebillCustomer($bodyoptions);
      var_dump($response);
  } catch(SOAPFault $e){
      print $e;
  }
  ?&gt;
  </code></pre>