I have found a difference in the output WBXML between zpush2 and as12.1 that may be causing the problem.
If I am reading it correctly the Part number in the response should be ZERO offset according to the MS spec.
The WBXML response, which contains status and application data for all requested items. The WBXML response is always the first part in the response. Items composed of binary content have a Part element (section 2.2.3.120) that indicates the index (base 0) of the body part that corresponds to that item in the multipart structure. This index is used by the client to find the appropriate [start, count] entry in the metadata.
but zpush2 is outputting Part 1 (ONE) for the file.
Can you tell me what change I would need to make to have the attachment referred to as part 0 (ZERO) - and I will test it.
Here is the debug log of WM6.5 requesting a PDF attachment from a z-push-2 server - Note the part 1 in the response. The phone never finishes "downloading"
It is followed by the same request to an as12.1 server. Note the part 0 in the response. The phone gets the file and can open it correctly.
z-push-2 logs for ItemOperations Fetch
- Code: Select all
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:ItemOperations>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Status>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O 1
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Status>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Response>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Fetch>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Status>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O 1
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Status>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <AirSyncBase:FileReference>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O 2:95844:2
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </AirSyncBase:FileReference>
23/07/2012 15:23:12 [27311] [vincents] [DEBUG] START GetAttachmentData { attname = '2:95844:2' }
23/07/2012 15:23:12 [27311] [vincents] [DEBUG] END GetAttachmentData { application/pdf }
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Properties>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <AirSyncBase:ContentType>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O application/pdf
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </AirSyncBase:ContentType>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O <ItemOperations:Part>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O 1
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Part>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Properties>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Fetch>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:Response>
23/07/2012 15:23:12 [27311] [vincents] [WBXML] O </ItemOperations:ItemOperations>
Here is the equivalent attachment requested through as12.1 - note that it is referred to as Part 0 (ZERO)
as12.1 logs for ItemOperations Fetch
- Code: Select all
07/23/12 13:24:36 [24122] O <ItemOperations:ItemOperations>
07/23/12 13:24:36 [24122] O <ItemOperations:Status>
07/23/12 13:24:36 [24122] O 1
07/23/12 13:24:36 [24122] O </ItemOperations:Status>
07/23/12 13:24:36 [24122] O <ItemOperations:Response>
07/23/12 13:24:36 [24122] O <ItemOperations:Fetch>
07/23/12 13:24:36 [24122] O <ItemOperations:Status>
07/23/12 13:24:36 [24122] O 1
07/23/12 13:24:36 [24122] O </ItemOperations:Status>
07/23/12 13:24:36 [24122] O <AirSyncBase:FileReference>
07/23/12 13:24:36 [24122] O 2:95844:2
07/23/12 13:24:36 [24122] O </AirSyncBase:FileReference>
07/23/12 13:24:36 [24122] START ItemOperationsGetAttachmentData { attname = '2:95844:2' }
07/23/12 13:24:36 [24122] END ItemOperationsGetAttachmentData { application/pdf }
07/23/12 13:24:36 [24122] O <ItemOperations:Properties>
07/23/12 13:24:36 [24122] O <AirSyncBase:ContentType>
07/23/12 13:24:36 [24122] O application/pdf
07/23/12 13:24:36 [24122] O </AirSyncBase:ContentType>
07/23/12 13:24:36 [24122] O <ItemOperations:Part>
07/23/12 13:24:36 [24122] O 0
07/23/12 13:24:36 [24122] O </ItemOperations:Part>
07/23/12 13:24:36 [24122] O </ItemOperations:Properties>
07/23/12 13:24:36 [24122] O </ItemOperations:Fetch>
07/23/12 13:24:36 [24122] O </ItemOperations:Response>
07/23/12 13:24:36 [24122] O </ItemOperations:ItemOperations>
