3.1.4.1.1.2 ProcessQueryOut

The ProcessQueryOut message is the response message for the ProcessQuery Web service method.

If no CSOM Stream is returned to the protocol client, the message is JSON text that MUST adhere to the JSON response structure specified in section 3.1.4.1.8.2.

If a CSOM Stream is returned to the protocol client, the message is a MIME multipart/related message as specified by [RFC2387], and the first MIME part is the JSON text that MUST adhere to the JSON response structure specified in section 3.1.4.1.8.2. The other MIME parts contain the CSOM Stream data returned by the protocol server. Each MIME part MUST have a Content-Length MIME header.

For example, the following is a response message that contains three MIME parts where the first MIME part is the JSON text and the other two MIME parts contain CSOM Stream data returned by the protocol server.

  
 --1599120F-20CE-4389-9371-BDC377356FEF+id=1
 Content-ID: <http://sharepoint.microsoft.com/client/634551729566307786>
 Content-Transfer-Encoding: eightbit
 Content-Type: application/jop+json;charset=utf-8;type="application/json"
 Content-Length: 653
  
 [
 {
 "SchemaVersion":"15.0.0.0","LibraryVersion":"15.0.3421.3000","ErrorInfo":null
 },2,{
 "IsNull":false
 },4,{
 "IsNull":false
 },6,{
 "IsNull":false
 },7,{
 "_ObjectType_":"SampleCode.Book","Author":"Soha Kamal","Id":"\/Guid(3387ac63-e73d-421f-bff7-359a4aa2bc38)\/","PublishDate":"\/Date(2008,2,1,0,0,0,0)\/","Status":0,"Title":"How to Cook Chinese Food"
 },8,"\/Binary(http%3a%2f%2fsharepoint.microsoft.com%2fclient%2fattachment%2f0%2f634551729566257776)\/",10,{
 "IsNull":false
 },11,{
 "_ObjectType_":"SampleCode.Book","Author":"Patrick Hines","Status":0
 },12,"\/Binary(http%3a%2f%2fsharepoint.microsoft.com%2fclient%2fattachment%2f1%2f634551729566307786)\/"
 ]
 --1599120F-20CE-4389-9371-BDC377356FEF+id=1
 Content-ID: <http://sharepoint.microsoft.com/client/attachment/0/634551729566257776>
 Content-Transfer-Encoding: binary
 Content-Type: application/octet-stream
 Content-Length: 48
  
 Sample Content of book How to Cook Chinese Food.
 --1599120F-20CE-4389-9371-BDC377356FEF+id=1
 Content-ID: <http://sharepoint.microsoft.com/client/attachment/1/634551729566307786>
 Content-Transfer-Encoding: binary
 Content-Type: application/octet-stream
 Content-Length: 37
  
 Sample Content of book Family Recipe.
 --1599120F-20CE-4389-9371-BDC377356FEF+id=1--