title: PHP SOAP / Understanding WSDL
body: <p><strong>Figured it out, see Update below.</strong> </p>
  
  <p>I'm trying to work with a particular web service via PHP (tried both the native and Zend SOAP clients) and it only returns a failure status.</p>
  
  <p>I suspect that it has something to do with the multiple beans in the retrieveMemberInfo method call (authBean, memberInfoBean).</p>
  
  <p>Could someone take a look at the WSDL and point me in the right direction for this particular method call via the PHP client?</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>$service = new SoapClient('https://qa.everbridge.net/ws3/services/WebServices3?wsdl');
  $result = $service-&gt;retrieveMemberInfo(array('loginId', 'orgName', 'password'), array('firstname', 'lastname'));
  var_dump($result);
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>The problem was not with the WSDL call as originally thought. It was the format for the parameters used in the retrieveMemberInfo method call. Here is the full solution that correctly returns the SOAP response:</p>
  
  <pre><code>$params-&gt;authBean-&gt;loginId = 'username';
  $params-&gt;authBean-&gt;orgName = 'orgName';
  $params-&gt;authBean-&gt;password = 'password';
  $params-&gt;memberInfoBean-&gt;firstName = 'firstName';
  $params-&gt;memberInfoBean-&gt;lastName = 'lastName';
  
  $service = new SoapClient('https://qa.everbridge.net/ws3/services/WebServices3?wsdl');
  $result = $service-&gt;retrieveMemberInfo($params);
  
  var_dump($result);
  </code></pre>
  
  <p>Now I just have to figure out how to parse the returned stdObject.</p>
  
  <p>Thanks for the assistance.</p>