title: UNEXPECTED_ERROR when calling wsdl functions
body: <p>I am trying to call to some wsdl functions from php. </p>
  
  <p>Let's say I have these two functions:</p>
  
  <pre><code>**listStyleCategories**
  Input:
  &lt;xs:complexType name="listStyleCategories"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="arg0" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  Output:
  &lt;xs:complexType name="listStyleCategoriesResponse"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="return" type="tns:listStyleCategoriesOutputBean" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name="listStyleCategoriesOutputBean"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="categories" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/&gt;
  &lt;xs:element name="statusInfo" type="xs:int" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  
  **listStyleTypes**
  Input:
  &lt;xs:complexType name="listStyleTypes"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="arg0" type="tns:listStyleTypesInputBean" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name="listStyleTypesInputBean"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="category" type="xs:string" minOccurs="0"/&gt;
  &lt;xs:element name="language" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  Output:
  &lt;xs:complexType name="listStyleTypesResponse"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="return" type="tns:listStyleTypesOutputBean" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name="listStyleTypesOutputBean"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="detail" type="tns:listStyleTypesOutputDetailBean" nillable="true"    minOccurs="0" maxOccurs="unbounded"/&gt;
  &lt;xs:element name="statusInfo" type="xs:int" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:complexType name="listStyleTypesOutputDetailBean"&gt;
  &lt;xs:sequence&gt;
  &lt;xs:element name="icon" type="xs:base64Binary" minOccurs="0"/&gt;
  &lt;xs:element name="styleId" type="xs:int" minOccurs="0"/&gt;
  &lt;xs:element name="type" type="xs:string" minOccurs="0"/&gt;
  &lt;/xs:sequence&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>when I call the first one, which has a single parameter, everything goes ok:</p>
  
  <pre><code>$param = array('arg0' =&gt;$language);
  $result = $client-&gt;listStyleCategories($param);
  $result_arr = objectToArray($result);
  echo "&lt;pre&gt;";print_r($result_arr);echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>But when I call the second function with two parameters, I get an UNEXPECTED_ERROR:</p>
  
  <pre><code>$param = array('category' =&gt;'Woman','language'=&gt;$language);
  $result = $client-&gt;listStyleTypes($param);
  $result_arr = objectToArray($result);   
  echo "&lt;pre&gt;";print_r($result_arr);echo "&lt;/pre&gt;";
  </code></pre>
  
  <p>I know for good that the 'Woman' category, and the defined language are right. Maybe I'm building wrong the parameters? </p>
  
  <p>Thanks in advance.</p>