title: Getting javax.xml.ws.soap.SOAPFaultException when I call getListItems when I Include query In Java
body: <p>I am working with Sharepoint SOAP service to get the data on the bases of the query.
  I am getting a list of documents when I pass Query parameter as null in GetListItems, but when I pass Query it is giving me following error message.</p>
  
  <pre><code>javax.xml.ws.soap.SOAPFaultException: Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.
  at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
  at com.sun.xml.internal.w's. fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
  at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
  at com.sun.xml.internal. w's.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
  at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
  at $Proxy30.getListItems(Unknown Source)
  </code></pre>
  
  <p>Code and Input are as follow.</p>
  
  <p><code>GetListItems.ViewFields viewFields = new ViewFields();
   viewFields.getContent().add("&lt;ViewFields&gt;&lt;FieldRef Name='ID' /&gt;&lt;/ViewFields&gt;");<br>
   GetListItems.Query query = new Query();
   query.getContent().add("&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name='ID' /&gt;&lt;Value Type='Text'&gt;3&lt;/Value&gt;   &lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;");</code></p>
  
  <p>and This the way I am calling to the Sharepoint service</p>
  
  <pre><code>port.getListItems(listName, "", query, viewFields, rowLimit, null, null);
  </code></pre>
  
  <p>Thanks in advance for your time and help.</p>