3 Structure Examples

To establish folder sharing, a client that is sharing information sends a Sharing Message Attachment XML document to a subscriber as an attachment on an email message. To create the document, the client first calls the GetSharingMetadata operation, as described in [MS-OXWSMSHR] section 3.1.4.4. The client then creates the document based on the Sharing Message Attachment schema. The EncryptedSharedFolderDataCollection element of the GetSharingMetadataResponse element, as described in [MS-OXWSMSHR] section 3.1.4.4.2.2, is inserted into the Sharing Message Attachment XML document as the EncryptedSharedFolderDataCollection element of the ProviderType element. For more information about folder sharing and sending an attachment, see [MS-OXWSMSHR].

This section contains an example sharing message XML document. The document specifies a request to share a calendar item, and the initiator is User1. The FolderId element has been shortened for readability. The EncryptedSharedFolderData element is copied from the GetSharingMetadata response example in [MS-OXWSMSHR] section 4.2.

 <?xml version="1.0"?>
 <SharingMessage>
   <DataType>calendar</DataType>
   <Initiator>
     <Name>User1</Name>
     <SmtpAddress>user1@contoso.com</SmtpAddress>
   </Initiator>
   <RequestType>
     <Providers>
       <Provider Type="ms-exchange-external" 
           TargetRecipients="user2@contoso.com;user3@contoso.com">
         <FolderId>AAMkADc1YjI=</FolderId>
         <EncryptedSharedFolderDataCollection>
           <EncryptedSharedFolderData 
               xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
             <Token>
               <EncryptedData Id="Assertion0" 
                   Type="http://www.w3.org/2001/04/xmlenc#Element" 
                   xmlns="http://www.w3.org/2001/04/xmlenc#">
                 <EncryptionMethod 
                     Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc">
                 </EncryptionMethod>
                   <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                     <EncryptedKey>
                       <EncryptionMethod 
                           Algorithm="http://www.w3.org/2001/04/
                               xmlenc#rsa-oaep-mgf1p"></EncryptionMethod>
                       <ds:KeyInfo Id="keyinfo">
                         <wsse:SecurityTokenReference 
                             xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/
                                 oasis-200401-wss-wssecurity-secext-1.0.xsd">
                           <wsse:KeyIdentifier
                              EncodingType="http://docs.oasis-
                                  open.org/wss/2004/01/oasis-200401-wss-soap-
                                  message-security-1.0#Base64Binary"
                              ValueType="http://docs.oasis-open.org/
                                      wss/2004/01/oasis-
                                       200401-wss-x509-token-profile-                         
                                       1.0#X509SubjectKeyIdentifier">
                                   nR+jNSYQR9eSkgOpEog/xQ==
                           </wsse:KeyIdentifier>
                         </wsse:SecurityTokenReference>
                       </ds:KeyInfo>
                       <CipherData>
                         <CipherValue>arNGOQ+nYwa/…==</CipherValue>
                       </CipherData>
                     </EncryptedKey>
                   </ds:KeyInfo>
                   <CipherData>
                     <CipherValue>KhP6tqH4…=</CipherValue>
                   </CipherData>
                 </EncryptedData>
               </Token>
              <Data>
                <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element"
                     xmlns="http://www.w3.org/2001/04/xmlenc#">
                  <EncryptionMethod
                     Algorithm="http://www.w3.org/2001/04/xmlenc#aes256-cbc"/>
                <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                  <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
                    <EncryptionMethod
                         Algorithm="http://www.w3.org/2001/04/
                             xmlenc#kw-tripledes"/>
                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                      <KeyName>key</KeyName>
                    </KeyInfo>
                    <CipherData>
                      <CipherValue>
                        SqPZz6UU…
                      </CipherValue>
                     </CipherData>
                   </EncryptedKey>
                 </KeyInfo>
                 <CipherData>
                   <CipherValue>+QXPTi49k…=</CipherValue>
                 </CipherData>
               </EncryptedData>
             </Data>
           </EncryptedSharedFolderData>
         </EncryptedSharedFolderDataCollection>
       </Provider>
     </Providers>
   </RequestType>
 </SharingMessage>
Show: