HowTo Enable WBXML Logging in Exchange Server?

Announcements etc.

HowTo Enable WBXML Logging in Exchange Server?

Postby SGU » Wed Apr 11, 2012 3:00 pm

Hello,

i have a little issue with one a htc android handset. i think maybe i can fix it and provide the solution here but at the moment i don't know how to enable wbxml logging on a exchange server. Because with the exchange server the issue does not happen.

Can someone maybe give me a hint how to enable and where to find the logs? Or is there only the possibillity to analyze the communication with tools like wireshark?

SGU
Last edited by SGU on Wed Apr 11, 2012 5:13 pm, edited 2 times in total.
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am

Re: HowTo Enable WBXML Loggig in Exchnage Server?

Postby mku » Wed Apr 11, 2012 4:06 pm

Hi SGU,

wireshark and tshark have WBXML packet support, so you should be able to see that communication.

Regarding the Exchange logs - I have no idea if it's possible.

What issue do you have? We have found some as well, so it might be that we already work on it.

Greets, Manfred
Try using forum search as well!
Please do not PM me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1343
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: HowTo Enable WBXML Loggig in Exchnage Server?

Postby SGU » Wed Apr 11, 2012 5:06 pm

After bringing some HTML Support (AS 12.x +) with the help of the trunk of Andreas and the new features in zpush2 into the imap Backend i mentioned that on a htc desire hd with the latest official android software (2.something) it does not work to display the correct size of the attachements it only Displays "0KB" until the attachement is loaded. In Fact with iOS 5.1 it works fine. And on an Exchange 2010 Server the HTC Desire shows the correct attachement size. So i thought it would be interesting to see what is different in the communication with the exchange server, because the AS docu for the "EstimatedDataSize" parameter is a little bit thin.

If you not already know what the problem is, i will look into it tomorrow.
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby mku » Wed Apr 11, 2012 5:18 pm

Hi SGU,

we are aware of an issue regarding HTML emails on some androids with Zarafa backend (emails not displayed properly), but this particular one is not known.

Greets, Manfred
Try using forum search as well!
Please do not PM me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1343
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby SGU » Wed Apr 11, 2012 5:29 pm

As i said, i brought some html to the imap backend, so now it can answer airsync-type 1 (plain) 2 (html) and 4(mime) with attachements for normal and inline images.
The HTC Desire uses type "2" when requesting an email and i have no trouble with the presentation of the emails on the device. This works on the most android devices even better then with the AS12.1 branch. Only the attachementsize is displayed wrong on the device until i have downloaded the attachement to the device, this i have also seen in the as12.1 branch.

Thank you for your quick repley. I will look into it tomorrow and bring the solution if i find one ;).

SGU
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby SGU » Thu Apr 12, 2012 12:22 pm

Hi,

as i said yesterday, i tried to solve the problem. I've done a wireshark log, and analyzed the differences between the exchange server wbxml and the wbxml generated from my imap backend. After Adding some missing and removing some options i think i got something that should work, but it did not.

Here is the WBXML from the exchange (2010) server:
Code: Select all
Level | State | Codepage | WBXML Token Description         | Rendering
   0 | Tag   | T   0    |   Known Tag 0x05           (.C) |  <Synchronize>
   1 | Tag   | T   0    |   Known Tag 0x1C           (.C) |    <Folders>
   2 | Tag   | T   0    |   Known Tag 0x0F           (.C) |      <Folder>
   3 | Tag   | T   0    |   Known Tag 0x0B           (.C) |        <SyncKey>
   3 | Tag   | T   0    | STR_I (Inline string)           |        '814999050'
   3 | Tag   | T   0    | END (Known Tag 0x0B)            |        </SyncKey>
   3 | Tag   | T   0    |   Known Tag 0x12           (.C) |        <FolderId>
   3 | Tag   | T   0    | STR_I (Inline string)           |        '19'
   3 | Tag   | T   0    | END (Known Tag 0x12)            |        </FolderId>
   3 | Tag   | T   0    |   Known Tag 0x0E           (.C) |        <Error>
   3 | Tag   | T   0    | STR_I (Inline string)           |        '1'
   3 | Tag   | T   0    | END (Known Tag 0x0E)            |        </Error>
   3 | Tag   | T   0    |   Known Tag 0x16           (.C) |        <Perform>
   4 | Tag   | T   0    |   Known Tag 0x07           (.C) |          <Add>
   5 | Tag   | T   0    |   Known Tag 0x0D           (.C) |            <ServerEntryId>
   5 | Tag   | T   0    | STR_I (Inline string)           |            '19:25'
   5 | Tag   | T   0    | END (Known Tag 0x0D)            |            </ServerEntryId>
   5 | Tag   | T   0    |   Known Tag 0x1D           (.C) |            <Data>
     | Tag   | T -->  2 | SWITCH_PAGE (Tag code page)     |
   6 | Tag   | T   2    |   Known Tag 0x16           (.C) |              <To>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '"SGU" <sgu@example.net>'
   6 | Tag   | T   2    | END (Known Tag 0x16)            |              </To>
   6 | Tag   | T   2    |   Known Tag 0x18           (.C) |              <From>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '"SGU" <sgu@example.net>'
   6 | Tag   | T   2    | END (Known Tag 0x18)            |              </From>
   6 | Tag   | T   2    |   Known Tag 0x14           (.C) |              <Subject>
   6 | Tag   | T   2    | STR_I (Inline string)           |              'Test A1'
   6 | Tag   | T   2    | END (Known Tag 0x14)            |              </Subject>
   6 | Tag   | T   2    |   Known Tag 0x0F           (.C) |              <DateReceived>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '2012-04-12T08:50:47.613Z'
   6 | Tag   | T   2    | END (Known Tag 0x0F)            |              </DateReceived>
   6 | Tag   | T   2    |   Known Tag 0x11           (.C) |              <DisplayTo>
   6 | Tag   | T   2    | STR_I (Inline string)           |              'SGU'
   6 | Tag   | T   2    | END (Known Tag 0x11)            |              </DisplayTo>
   6 | Tag   | T   2    |   Known Tag 0x35           (.C) |              <ThreadTopic>
   6 | Tag   | T   2    | STR_I (Inline string)           |              'Test A1'
   6 | Tag   | T   2    | END (Known Tag 0x35)            |              </ThreadTopic>
   6 | Tag   | T   2    |   Known Tag 0x12           (.C) |              <Importance>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '1'
   6 | Tag   | T   2    | END (Known Tag 0x12)            |              </Importance>
   6 | Tag   | T   2    |   Known Tag 0x15           (.C) |              <Read>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '0'
   6 | Tag   | T   2    | END (Known Tag 0x15)            |              </Read>
     | Tag   | T --> 17 | SWITCH_PAGE (Tag code page)     |
   6 | Tag   | T  17    |   Known Tag 0x0E           (.C) |              <(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    |   Known Tag 0x0F           (.C) |                <(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    |   Known Tag 0x10           (.C) |                  <(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    | STR_I (Inline string)           |                  'mtail.exe'
   8 | Tag   | T  17    | END (Known Tag 0x10)            |                  </(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    |   Known Tag 0x11           (.C) |                  <(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    | STR_I (Inline string)           |                  '19%3a25%3a0'
   8 | Tag   | T  17    | END (Known Tag 0x11)            |                  </(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    |   Known Tag 0x12           (.C) |                  <(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    | STR_I (Inline string)           |                  '1'
   8 | Tag   | T  17    | END (Known Tag 0x12)            |                  </(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    |   Known Tag 0x0C           (.C) |                  <(Requested token code page not defined for this content type)>
   8 | Tag   | T  17    | STR_I (Inline string)           |                  '2439232'
   8 | Tag   | T  17    | END (Known Tag 0x0C)            |                  </(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    | END (Known Tag 0x0F)            |                </(Requested token code page not defined for this content type)>
   6 | Tag   | T  17    | END (Known Tag 0x0E)            |              </(Requested token code page not defined for this content type)>
   6 | Tag   | T  17    |   Known Tag 0x0A           (.C) |              <(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    |   Known Tag 0x06           (.C) |                <(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    | STR_I (Inline string)           |                '2'
   7 | Tag   | T  17    | END (Known Tag 0x06)            |                </(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    |   Known Tag 0x0C           (.C) |                <(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    | STR_I (Inline string)           |                '833'
   7 | Tag   | T  17    | END (Known Tag 0x0C)            |                </(Requested token code page not defined for this content type)>
   7 | Tag   | T  17    |   Known Tag 0x0B           (.C) |                <(Requested token code page not defined for this content type)>
[truncated]     7 | Tag   | T  17    | STR_I (Inline string)           |                '<html>\r\n<head>\r\n<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r\n</head>\r\n<body leftmargin="5" topmargin="5" style="font:1
   7 | Tag   | T  17    | END (Known Tag 0x0B)            |                </(Requested token code page not defined for this content type)>
   6 | Tag   | T  17    | END (Known Tag 0x0A)            |              </(Requested token code page not defined for this content type)>
     | Tag   | T -->  2 | SWITCH_PAGE (Tag code page)     |
   6 | Tag   | T   2    |   Known Tag 0x13           (.C) |              <MessageClass>
   6 | Tag   | T   2    | STR_I (Inline string)           |              'IPM.Note'
   6 | Tag   | T   2    | END (Known Tag 0x13)            |              </MessageClass>
   6 | Tag   | T   2    |   Known Tag 0x39           (.C) |              <InternetCPID>
   6 | Tag   | T   2    | STR_I (Inline string)           |              '28591'
   6 | Tag   | T   2    | END (Known Tag 0x39)            |              </InternetCPID>
   6 | Tag   | T   2    |   Known Tag 0x3a           (..) |              <(Requested token not defined for this content type) />
   6 | Tag   | T   2    |   Known Tag 0x3C           (.C) |              <(Requested token not defined for this content type)>
   6 | Tag   | T   2    | STR_I (Inline string)           |              'urn:content-classes:message'
   6 | Tag   | T   2    | END (Known Tag 0x3C)            |              </(Requested token not defined for this content type)>
     | Tag   | T --> 17 | SWITCH_PAGE (Tag code page)     |
   6 | Tag   | T  17    |   Known Tag 0x16           (.C) |              <(Requested token code page not defined for this content type)>
   6 | Tag   | T  17    | STR_I (Inline string)           |              '2'
   6 | Tag   | T  17    | END (Known Tag 0x16)            |              </(Requested token code page not defined for this content type)>
   5 | Tag   | T  17    | END (Known Tag 0x1D)            |            </Data>
   4 | Tag   | T  17    | END (Known Tag 0x07)            |          </Add>
   3 | Tag   | T  17    | END (Known Tag 0x16)            |        </Perform>
   2 | Tag   | T  17    | END (Known Tag 0x0F)            |      </Folder>
   1 | Tag   | T  17    | END (Known Tag 0x1C)            |    </Folders>
   0 | Tag   | T  17    | END (Known Tag 0x05)            |  </Synchronize>


And here From the imap Backend
Code: Select all
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O  <Synchronize>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O   <Folders>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O    <Folder>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     <FolderType>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     Email
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     </FolderType>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     <SyncKey>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     {1795d7ec-0e45-46cf-be12-e09292f342d4}19
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     </SyncKey>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     <FolderId>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     i/f5cb5915
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     </FolderId>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     <Status>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     1
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     </Status>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     <Perform>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O      <Add>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O       <ServerEntryId>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O       11455
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O       </ServerEntryId>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O       <Data>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:To>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        sgu@example.net
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:To>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:From>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        "SGU" <sgu@example.net>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:From>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:Subject>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        Test A4
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:Subject>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:DateReceived>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        2012-04-12T09:49:19.000Z
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:DateReceived>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:Importance>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        1
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:Importance>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:Read>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        0
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:Read>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:MessageClass>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        IPM.Note
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:MessageClass>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:InternetCPID>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        1252
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:InternetCPID>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <AirSyncBase:Body>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         <AirSyncBase:Type>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         2
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         </AirSyncBase:Type>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         <AirSyncBase:EstimatedDataSize>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         349
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         </AirSyncBase:EstimatedDataSize>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         <AirSyncBase:Data>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META name=GENERATOR content="MSHTML 9.00.8112.16441"></HEAD>
<BODY style="FONT: 10pt Calibri; COLOR: #000000" leftMargin=5 topMargin=5>
<DIV><BR>Body A4</DIV>
<DIV>Zeile 2</DIV></BODY></HTML>


12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         </AirSyncBase:Data>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </AirSyncBase:Body>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <AirSyncBase:Attachments>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         <AirSyncBase:Attachment>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          <AirSyncBase:DisplayName>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          mtail.exe
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          </AirSyncBase:DisplayName>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          <AirSyncBase:FileReference>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          f5cb5915:11455:1
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          </AirSyncBase:FileReference>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          <AirSyncBase:Method>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          1
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          </AirSyncBase:Method>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          <AirSyncBase:EstimatedDataSize>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          3252224
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O          </AirSyncBase:EstimatedDataSize>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O         </AirSyncBase:Attachment>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </AirSyncBase:Attachments>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <POOMMAIL:ContentClass>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        urn:content-classes:message
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </POOMMAIL:ContentClass>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        <AirSyncBase:NativeBodyType>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        2
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O        </AirSyncBase:NativeBodyType>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O       </Data>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O      </Add>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O     </Perform>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O    </Folder>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O   </Folders>
12/04/2012 11:49:36 [ 2388] [sgu] [WBXML] O  </Synchronize>


I think maybe it does not only depend on the wbxml... but i don't know for shure.
As i said yesterday, with iOS 5.1 it works fine, and with an Samsung Galaxy S (Android 2.x) it also Works.

I should say, i disabled provisioning on my zpush server to fasten the "resync" a little bit when testing. Is it possible that the problem can depend on this?

Greetings
SGU
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby mku » Thu Apr 12, 2012 3:56 pm

Hi SGU,

it's unlikely that provisioning affects it. If I remember correctly the default setting is to allow the html mails. What is the value of the MS-ASProtocolVersions header you're sending to the device?

Greets, Manfred
Try using forum search as well!
Please do not PM me asking for support. Use the forum instead. Thank you.
mku
Site Admin
 
Posts: 1343
Joined: Thu Sep 20, 2007 4:48 pm
Location: Belo Horizonte / Brazil

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby SGU » Thu Apr 12, 2012 4:11 pm

The lines
Code: Select all
 public function GetSupportedASVersion() {
        return ZPush::ASV_14;
    }   


in the Combined Backend should return AS 14.
Maybe i will test it tomorrow with 12 and 12.1 ;)
At the moment i have written the "glitch" on my list of not wrking funktions ;)

SGU
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am

Re: HowTo Enable WBXML Logging in Exchange Server?

Postby SGU » Fri Apr 13, 2012 1:24 pm

Hello,

today i got it working. I'm not shure what the problem solved, but i found a new andoid-update for the phone (android 2.3.5). I installed it, and i did a factory reset of the phone. Now it's working. I've testet it today on another zpush2-server with provisioning enabled.

So i can't say in detail what the problem solved, but one of these steps did it. Now the phone is showing the correct attachment size so you can decide to download it or not.

Greeting & thx for the help
SGU
SGU
 
Posts: 47
Joined: Fri Apr 30, 2010 8:16 am


Return to General discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron