3.1.4.1.1.1 ProcessQueryIn

The ProcessQueryIn message is the request message for the ProcessQuery Web service method.

When there is no CSOM Stream data involved in the request, the ProcessQueryIn message is an XML document that MUST adhere to the request XML schema specified in section 6.1.

When there is CSOM Stream data involved in the request, the ProcessQueryIn message is a MIME multipart/related message as specified by [RFC2387], and the first MIME part is an XML document that MUST adhere to the request XML schema specified in section 6.1. The other MIME parts contain CSOM Stream data used by the request. Each MIME part in the MIME multipart/related message MUST have a Content-Length MIME header.

For example, the following is a request message that contains three MIME parts where the first MIME part is the XML document and the other two MIME parts contain CSOM Stream data used by the request.

 --D1995E12-4610-4C2B-AB08-C1A0ECE8CE4D+id=1
 Content-ID: <http://sharepoint.microsoft.com/client/634551683559778320>
 Content-Transfer-Encoding: 8bit
 Content-Type: application/xop+xml;charset=utf-8;type="application/xml"
 Content-Length: 1203
  
 <Request AddExpandoFieldTypeSuffix="true" SchemaVersion="15.0.0.0" LibraryVersion="15.0.0.0" ApplicationName=".NET Library" xmlns="http://schemas.microsoft.com/sharepoint/clientquery/2009"><Actions><ObjectPath Id="2" ObjectPathId="1" /><ObjectPath Id="4" ObjectPathId="3" /><ObjectPath Id="6" ObjectPathId="5" /><Method Name="UpdateSampleStream" Id="7" ObjectPathId="5"><Parameters><Parameter Type="Binary"><Include href="cid:http://sharepoint.microsoft.com/8" /></Parameter></Parameters></Method><ObjectPath Id="10" ObjectPathId="9" /><Method Name="UpdateSampleStream" Id="11" ObjectPathId="9"><Parameters><Parameter Type="Binary"><Include href="cid:http://sharepoint.microsoft.com/12" /></Parameter></Parameters></Method></Actions><ObjectPaths><StaticProperty Id="1" TypeId="{acc57e47-24b0-4400-b1c7-aa1cf3c9542d}" Name="Catalog" /><Property Id="3" ParentId="1" Name="Books" /><Method Id="5" ParentId="3" Name="GetById"><Parameters><Parameter Type="Guid">{3387ac63-e73d-421f-bff7-359a4aa2bc38}</Parameter></Parameters></Method><Method Id="9" ParentId="3" Name="GetById"><Parameters><Parameter Type="Guid">{704655a3-c136-469c-a578-f79652a93f9b}</Parameter></Parameters></Method></ObjectPaths></Request>
 --D1995E12-4610-4C2B-AB08-C1A0ECE8CE4D+id=1
 Content-ID: <http://sharepoint.microsoft.com/8>
 Content-Transfer-Encoding: binary
 Content-Type: application/octet-stream
 Content-Length: 26
  
 New sample content of book
 --D1995E12-4610-4C2B-AB08-C1A0ECE8CE4D+id=1
 Content-ID: <http://sharepoint.microsoft.com/12>
 Content-Transfer-Encoding: binary
 Content-Type: application/octet-stream
 Content-Length: 28
  
 New sample content of book 2
 --D1995E12-4610-4C2B-AB08-C1A0ECE8CE4D+id=1--