title: Assistance with PHP SOAP call - Building the call based on API documentation
body: <p>I´m trying to request some Ticket details from the <a href="http://www.otrs.com/" rel="nofollow">OTRS Ticketing system</a>, via <a href="/questions/tagged/soap" class="post-tag" title="show questions tagged &#39;soap&#39;" rel="tag">soap</a>. I've tried searching the web with no luck regarding the 'TicketSearch()' operator in the <a href="http://dev.otrs.org/3.0/Kernel/System/Ticket.html" rel="nofollow">OTRS API</a>  </p>
  
  <p><strong>I know that the SOAP connection is fine</strong> because the following 'User' object and 'GetUserData()' operator is responding with valid results and all of the users data:</p>
  
  <pre><code>try {
   $result = $client-&gt;__soapCall("Dispatch", array($user, $pass, "UserObject", "GetUserData", "UserID" , 2));
  }
  </code></pre>
  
  <p>Now when I change that SOAP call from a User search to Ticket search, I´m getting the responce 'NULL'.</p>
  
  <pre><code>try {
   $result = $client-&gt;__soapCall("Dispatch", array($user, $pass, "TicketObject", "TicketSearch",  "Result", array("ARRAY","HASH","COUNT"), "QueueIDs", 10, "StateType", "Open"));
  }
  </code></pre>
  
  <p>This is no surprise to me as I'm not sure how to convert the following required value into the SOAP request: </p>
  
  <blockquote>
    <p>Result => 'ARRAY' || 'HASH' || 'COUNT'</p>
  </blockquote>
  
  <p>You can view the corresponding <a href="http://dev.otrs.org/3.0/Kernel/System/Ticket.html" rel="nofollow">API documentation here</a> and then search for 'TicketSearch()'. Any help with fixing that request would be appreciated. My end goal is to get a list of Tickets in Queue number 10.</p>