11.01.2015 Views

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

[MS-ASCMD]: ActiveSync Command Reference Protocol Specification

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1<br />

1<br />

512<br />

<br />

<br />

60<br />

512<br />

<br />

When the server receives this Sync request and determines that it contains no changes, it caches<br />

the request for future use. The server then responds to the Sync request with an empty Sync<br />

response when no changes or errors have occurred on the server. The empty Sync response is as<br />

follows:<br />

HTTP/1.1 200 OK<br />

Date: Fri, 10 Apr 2009 20:32:39 GMT<br />

Content-Length: 0<br />

When the client receives the empty Sync response, it can in turn send an empty Sync request if<br />

there are no pending changes. The empty Sync request is as follows:<br />

POST /Microsoft-Server-<br />

<strong>ActiveSync</strong>Cmd=Sync&User=DeviceUser&DeviceId=v140Device&DeviceType=SmartPhone HTTP/1.1<br />

Content-Type: application/vnd.ms-sync.wbxml<br />

<strong>MS</strong>-AS<strong>Protocol</strong>Version: 14.0<br />

X-<strong>MS</strong>-PolicyKey: 2401271238<br />

User-Agent: ASOM<br />

Host: contoso.com<br />

The exchange of the empty Sync requests and responses continues until a change is detected on<br />

either the client or server, at which time a Sync request or response with an XML payload is sent.<br />

4.6 Sending E-Mail Messages by Using the SendMail <strong>Command</strong><br />

The following sections show how to send e-mail messages by using the SendMail command<br />

(section 2.2.2.15).<br />

4.6.1 Request<br />

The following example shows the SendMail command request (section 2.2.2.15.1) sent from the<br />

client to the server to send an e-mail message. The composemail:ClientId element (section<br />

2.2.3.27.1) represents the unique message ID of the message to be sent. The<br />

composemail:SaveInSentItems element (section 2.2.3.134) indicates to the server that a copy<br />

of the message is placed in the Sent Items folder, and the composemail:Mime element (section<br />

2.2.3.93) contains the message contents.<br />

<br />

<br />

633916348086136194<br />

<br />

From: testuser1<br />

To: testuser2<br />

Cc:<br />

[<strong>MS</strong>-<strong>ASCMD</strong>] — v20110315<br />

<strong>ActiveSync</strong> <strong>Command</strong> <strong>Reference</strong> <strong>Protocol</strong> <strong>Specification</strong><br />

Copyright © 2011 Microsoft Corporation.<br />

Release: Tuesday, March 15, 2011<br />

292 / 369

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!