4.4 DeliverXmsBatch

The following code is an example from client for sending a batch of mobile messages (two text messages in this example):

 <?xml version="1.0" encoding="utf-16"?>
 <xmsBatch client="Microsoft Windows SharePoint Service"
           xmlns="http://schemas.microsoft.com/office/Outlook/2006/OMS">
   <xmsData id="0">
     <user>
       <userId>ddguo</userId>
       <password />
       <customData />
     </user>
     <xmsHead>
       <requiredService>SMS_SENDER</requiredService>
       <sourceType>wssAlert</sourceType>
       <to>
         <recipient>13671121236</recipient>
       </to>
     </xmsHead>
     <xmsBody format="SMS">
       <content contentType="text/plain"
                contentId="1.txt@5ca13ed023024ed59cfae6c0e185a5db"
                contentLocation="1.txt">This is a testing message.</content>
     </xmsBody>
   </xmsData>
   <xmsData id="1">
     <user>
       <userId>ddguo</userId>
       <password />
       <customData />
     </user>
     <xmsHead>
       <requiredService>SMS_SENDER</requiredService>
       <sourceType>wssAlert</sourceType>
       <to>
         <recipient>13671121236</recipient>
       </to>
     </xmsHead>
     <xmsBody format="SMS">
       <content contentType="text/plain"
                contentId="1.txt@ecf25304326e497c8775a929a3178311"
                contentLocation="1.txt">This is a testing message.</content>
     </xmsBody>
   </xmsData>
 </xmsBatch>

The following code is an example of response from the protocol server for the able request:

 <?xml version="1.0" encoding="utf-16"?>
 <xmsResponses xmlns="http://schemas.microsoft.com/office/Outlook/2006/OMS">
   <xmsResponse id="0">
     <error code="ok" severity="neutral" />
     <error code="serviceupdate" severity="neutral">
       <content>2008-08-28T08:59:00Z</content>
     </error>
   </xmsResponse>
   <xmsResponse id="1">
     <error code="ok" severity="neutral" />
     <error code="serviceupdate" severity="neutral">
       <content>2008-08-28T08:59:00Z</content>
     </error>
   </xmsResponse>
 </xmsResponses>