<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Digging Into The Exchange ActiveSync Protocol</title>
	<atom:link href="http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/feed/" rel="self" type="application/rss+xml" />
	<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/</link>
	<description>place of the mobility way</description>
	<lastBuildDate>Mon, 23 Jan 2012 12:22:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Andreas</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18330</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Sat, 12 Nov 2011 13:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18330</guid>
		<description>Is this hand-crafted with Fiddler? I&#039;m not sure why, but Exchange does not always seem to like POST requests with a content-length of 0. (Zero-length POSTs serve no purpose though...) If you&#039;re testing with Fiddler it seems the GET is the only test that will give you the basic info you want for verifying that the server is online (in addition to using OPTIONS of course).
For further tests I recommend my EAS MD utility available in the downloads section - you can inspect the results in Fiddler of course. There&#039;s also source code available if you want to implement your own tools.</description>
		<content:encoded><![CDATA[<p>Is this hand-crafted with Fiddler? I&#8217;m not sure why, but Exchange does not always seem to like POST requests with a content-length of 0. (Zero-length POSTs serve no purpose though&#8230;) If you&#8217;re testing with Fiddler it seems the GET is the only test that will give you the basic info you want for verifying that the server is online (in addition to using OPTIONS of course).<br />
For further tests I recommend my EAS MD utility available in the downloads section &#8211; you can inspect the results in Fiddler of course. There&#8217;s also source code available if you want to implement your own tools.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: da</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18328</link>
		<dc:creator>da</dc:creator>
		<pubDate>Fri, 11 Nov 2011 17:23:48 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18328</guid>
		<description>I am also getting a 400 Bad Request Error. We are using EXCHANGE 2007 and the supported ASPProtocolVersion based on your OPTIONS strategy shows that 1.0...12.0,12.1 are supported. I used this in the POST headers to the server and still get 400 BAD Request.

https://xxxxxxx.com/Microsoft-Server-ActiveSync?User=userx&amp;DeviceId=12345&amp;DeviceType=Pocket_PC&amp;Cmd=Sync


User-Agent: MSFT-PPC/5.2.5300
Content-Length: 0
Authorization: Basic bmV0XHN0b3Jtc2FnZTpwYXNzd29yZA==
Content-Type: application/vnd.ms-sync.WBXML
MS-ASProtocolVersion: 12.0

The response in fiddler is 
HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: text/html
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
MS-Server-ActiveSync: 8.3
X-Powered-By: ASP.NET
Date: Fri, 11 Nov 2011 17:10:03 GMT
Connection: close

Bad Request


Any ideas what could be the problem?</description>
		<content:encoded><![CDATA[<p>I am also getting a 400 Bad Request Error. We are using EXCHANGE 2007 and the supported ASPProtocolVersion based on your OPTIONS strategy shows that 1.0&#8230;12.0,12.1 are supported. I used this in the POST headers to the server and still get 400 BAD Request.</p>
<p><a href="https://xxxxxxx.com/Microsoft-Server-ActiveSync?User=userx&#038;DeviceId=12345&#038;DeviceType=Pocket_PC&#038;Cmd=Sync" rel="nofollow">https://xxxxxxx.com/Microsoft-Server-ActiveSync?User=userx&#038;DeviceId=12345&#038;DeviceType=Pocket_PC&#038;Cmd=Sync</a></p>
<p>User-Agent: MSFT-PPC/5.2.5300<br />
Content-Length: 0<br />
Authorization: Basic bmV0XHN0b3Jtc2FnZTpwYXNzd29yZA==<br />
Content-Type: application/vnd.ms-sync.WBXML<br />
MS-ASProtocolVersion: 12.0</p>
<p>The response in fiddler is<br />
HTTP/1.1 400 Bad Request<br />
Cache-Control: private<br />
Content-Type: text/html<br />
Server: Microsoft-IIS/7.0<br />
X-AspNet-Version: 2.0.50727<br />
MS-Server-ActiveSync: 8.3<br />
X-Powered-By: ASP.NET<br />
Date: Fri, 11 Nov 2011 17:10:03 GMT<br />
Connection: close</p>
<p>Bad Request</p>
<p>Any ideas what could be the problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18256</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Mon, 10 Oct 2011 19:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18256</guid>
		<description>Something like this?
http://msdn.microsoft.com/en-us/library/ee203348(v=EXCHG.80).aspx</description>
		<content:encoded><![CDATA[<p>Something like this?<br />
<a href="http://msdn.microsoft.com/en-us/library/ee203348(v=EXCHG.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ee203348(v=EXCHG.80).aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neha</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18253</link>
		<dc:creator>Neha</dc:creator>
		<pubDate>Mon, 10 Oct 2011 05:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18253</guid>
		<description>Hi,

Thanks for the detailed explanation.I would like to ask something. For EAS, I want to download the headers only(not body of the mail).So which command i shall use or else what is the way to download the headers only.

Please help me out.

Thanks in Advance,
Neha</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the detailed explanation.I would like to ask something. For EAS, I want to download the headers only(not body of the mail).So which command i shall use or else what is the way to download the headers only.</p>
<p>Please help me out.</p>
<p>Thanks in Advance,<br />
Neha</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18112</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 26 Aug 2011 07:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18112</guid>
		<description>chkan,

Thanks for clearing that up! Your explanation was more precise and better than mine :)</description>
		<content:encoded><![CDATA[<p>chkan,</p>
<p>Thanks for clearing that up! Your explanation was more precise and better than mine <img src='http://mobilitydojo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ckhan</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18110</link>
		<dc:creator>ckhan</dc:creator>
		<pubDate>Fri, 26 Aug 2011 05:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18110</guid>
		<description>Actually, the 64 is 0x40, ie bit 6 on.
This is defined in the WAP Binary XML spec: http://www.w3.org/1999/06/NOTE-wbxml-19990624/#_Toc443384904 (I don&#039;t see it anywhere in the MS-ASWBXML doc on MSDN).

From that w3.org spec:
&quot;Bit 6	Indicates whether this tag begins an element containing content. If this bit is zero, the tag contains no content and no end tag. If this bit is one, the tag is followed by any content it contains and is terminated by an END token&quot;

Without bit 6 on (ie, sending 0x16 instead of 0x56) you&#039;re telling Exchange that there&#039;s no content in your element, which isn&#039;t true, so it rejects the request.</description>
		<content:encoded><![CDATA[<p>Actually, the 64 is 0&#215;40, ie bit 6 on.<br />
This is defined in the WAP Binary XML spec: <a href="http://www.w3.org/1999/06/NOTE-wbxml-19990624/#_Toc443384904" rel="nofollow">http://www.w3.org/1999/06/NOTE-wbxml-19990624/#_Toc443384904</a> (I don&#8217;t see it anywhere in the MS-ASWBXML doc on MSDN).</p>
<p>From that w3.org spec:<br />
&#8220;Bit 6	Indicates whether this tag begins an element containing content. If this bit is zero, the tag contains no content and no end tag. If this bit is one, the tag is followed by any content it contains and is terminated by an END token&#8221;</p>
<p>Without bit 6 on (ie, sending 0&#215;16 instead of 0&#215;56) you&#8217;re telling Exchange that there&#8217;s no content in your element, which isn&#8217;t true, so it rejects the request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Exchange ActiveSync Building Blocks &#8211; Intro &#124; MobilityDojo.net</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-18066</link>
		<dc:creator>Exchange ActiveSync Building Blocks &#8211; Intro &#124; MobilityDojo.net</dc:creator>
		<pubDate>Wed, 10 Aug 2011 20:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-18066</guid>
		<description>[...] details of the Exchange ActiveSync protocol. I have covered this topic before to a certain degree: http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/ Also explaining my EAS MD utility: [...]</description>
		<content:encoded><![CDATA[<p>[...] details of the Exchange ActiveSync protocol. I have covered this topic before to a certain degree: <a href="http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/" rel="nofollow">http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/</a> Also explaining my EAS MD utility: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-17956</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Thu, 14 Jul 2011 19:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-17956</guid>
		<description>Because 64 is a magic number?

No, that&#039;s probably not the reason :)

I can&#039;t remember the link to the msdn page I used as reference material. But the initial FolderSync is an &quot;empty&quot; sync request. You don&#039;t need to include the folder hierarchy, (this is part of what you&#039;re interested in acquiring), and since you haven&#039;t synced before you don&#039;t have a sync key either. So the first sync key is 0, and you know that the max length of the sync key is 64 characters. This is just the way my initial wbxml works out I guess - not able to give a better explanation at the moment.

Your xml was filtered out by the Wordpress commenting system which doesn&#039;t allow that kind of text so I&#039;m not able to compare notes on that part.</description>
		<content:encoded><![CDATA[<p>Because 64 is a magic number?</p>
<p>No, that&#8217;s probably not the reason <img src='http://mobilitydojo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I can&#8217;t remember the link to the msdn page I used as reference material. But the initial FolderSync is an &#8220;empty&#8221; sync request. You don&#8217;t need to include the folder hierarchy, (this is part of what you&#8217;re interested in acquiring), and since you haven&#8217;t synced before you don&#8217;t have a sync key either. So the first sync key is 0, and you know that the max length of the sync key is 64 characters. This is just the way my initial wbxml works out I guess &#8211; not able to give a better explanation at the moment.</p>
<p>Your xml was filtered out by the WordPress commenting system which doesn&#8217;t allow that kind of text so I&#8217;m not able to compare notes on that part.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-17954</link>
		<dc:creator>Robert</dc:creator>
		<pubDate>Thu, 14 Jul 2011 09:49:19 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-17954</guid>
		<description>Hi Andreas, 

I&#039;m trying to build an ActiveSync library and am currently stuck at the first try to send the wbxml code. Apparently Exchange is terminating the handshake because it doesn&#039;t recognize my request code. 

Comparing it with your wbxml example, I see that you don&#039;t send the actual codes as defined in the FolderHierarchy codepage, but add 64 to them. Can you explain why? 

Here is my Request in plain xml and the encoded variant: 


  0


03 01 6a 00 00 07 16 12 03 30 00 01 01

Your variant: 
03 01 6a 00 00 07 56 52 03 30 00 01 01

Thanks for your help!</description>
		<content:encoded><![CDATA[<p>Hi Andreas, </p>
<p>I&#8217;m trying to build an ActiveSync library and am currently stuck at the first try to send the wbxml code. Apparently Exchange is terminating the handshake because it doesn&#8217;t recognize my request code. </p>
<p>Comparing it with your wbxml example, I see that you don&#8217;t send the actual codes as defined in the FolderHierarchy codepage, but add 64 to them. Can you explain why? </p>
<p>Here is my Request in plain xml and the encoded variant: </p>
<p>  0</p>
<p>03 01 6a 00 00 07 16 12 03 30 00 01 01</p>
<p>Your variant:<br />
03 01 6a 00 00 07 56 52 03 30 00 01 01</p>
<p>Thanks for your help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://mobilitydojo.net/2010/03/17/digging-into-the-exchange-activesync-protocol/comment-page-1/#comment-17684</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Wed, 13 Apr 2011 09:53:43 +0000</pubDate>
		<guid isPermaLink="false">http://mobilitydojo.net/?p=985#comment-17684</guid>
		<description>Kristijan,

Glad to be of help - and it&#039;s great to have contributed to an open-source project :)</description>
		<content:encoded><![CDATA[<p>Kristijan,</p>
<p>Glad to be of help &#8211; and it&#8217;s great to have contributed to an open-source project <img src='http://mobilitydojo.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

