Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

EWS - HELP - Delete task - successful response but don't try

$
0
0

Hello,

I want to delete a item (task) with Exchange Web Services.

I have followed the documentation (http://msdn.microsoft.com/en-us/library/bb204091(v=exchg.80).aspx) 

the server retun a success response but the task is not deleted.

My provider is OVH, perhaps I haven't the permition to do delete item.  (server host :https://ex.mail.ovh.net/ews/exchange.asmx) I dont know ...

This the soap request : 

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/messages"><SOAP-ENV:Header><ns1:RequestServerVersion Version="Exchange2010"/></SOAP-ENV:Header><SOAP-ENV:Body><ns2:DeleteItem DeleteType="HardDelete"><ns2:ItemIds><ns1:ItemId Id="AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQBGAAAAAAB++7WPj0UOSpefm+XK9KDTBwB++BIZXYk3QZ9RhVxkdVIDAAAAAAETAAB++BIZXYk3QZ9RhVxkdVIDAABHcgqjAAA="/></ns2:ItemIds></ns2:DeleteItem></SOAP-ENV:Body></SOAP-ENV:Envelope>

the soap response : 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="0" MajorBuildNumber="995"MinorBuildNumber="28" Version="V2_15"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:DeleteItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:DeleteItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
</m:DeleteItemResponseMessage>
</m:ResponseMessages>
</m:DeleteItemResponse>
</s:Body>

</s:Envelope>

Just so you know the ID is good because I can retrieve the item with it.

sending request :

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/messages"><SOAP-ENV:Header><ns1:RequestServerVersion Version="Exchange2010"/></SOAP-ENV:Header><SOAP-ENV:Body><ns2:GetItem><ns2:ItemShape><ns1:BaseShape>AllProperties</ns1:BaseShape><ns1:BodyType>Text</ns1:BodyType></ns2:ItemShape><ns2:ItemIds><ns1:ItemId Id="AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQBGAAAAAAB++7WPj0UOSpefm+XK9KDTBwB++BIZXYk3QZ9RhVxkdVIDAAAAAAETAAB++BIZXYk3QZ9RhVxkdVIDAABHcgqjAAA="/></ns2:ItemIds></ns2:GetItem></SOAP-ENV:Body></SOAP-ENV:Envelope>

The server return that : 

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns="http://schemas.microsoft.com/exchange/services/2006/types"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MajorVersion="15" MinorVersion="0" MajorBuildNumber="995"MinorBuildNumber="28" Version="V2_15"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<m:GetItemResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<m:ResponseMessages>
<m:GetItemResponseMessage ResponseClass="Success">
<m:ResponseCode>NoError</m:ResponseCode>
<m:Items>
<t:Task>
<t:ItemIdId="AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQBGAAAAAAB++7WPj0UOSpefm+XK9KDTBwB++BIZXYk3QZ9RhVxkdVIDAAAAAAETAAB++BIZXYk3QZ9RhVxkdVIDAABHcgqjAAA="ChangeKey="EwAAABYAAAB++BIZXYk3QZ9RhVxkdVIDAABHcrdA"/>
<t:ParentFolderId Id="AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQAuAAAAAAB++7WPj0UOSpefm+XK9KDTAQB++BIZXYk3QZ9RhVxkdVIDAAAAAAETAAA="ChangeKey="AQAAAA=="/>
<t:ItemClass>IPM.Task</t:ItemClass>
<t:Subject>JULIEN</t:Subject>
<t:Sensitivity>Normal</t:Sensitivity>
<t:Body BodyType="Text"></t:Body>
<t:DateTimeReceived>2014-09-25T16:35:02Z</t:DateTimeReceived>
<t:Size>1330</t:Size>
<t:Importance>Normal</t:Importance>
<t:IsSubmitted>false</t:IsSubmitted>
<t:IsDraft>false</t:IsDraft>
<t:IsFromMe>false</t:IsFromMe>
<t:IsResend>false</t:IsResend>
<t:IsUnmodified>false</t:IsUnmodified>
<t:DateTimeSent>2014-09-25T16:35:02Z</t:DateTimeSent>
<t:DateTimeCreated>2014-09-25T16:35:02Z</t:DateTimeCreated>
<t:DisplayCc/>
<t:DisplayTo/>
<t:HasAttachments>false</t:HasAttachments>
<t:Culture>fr-FR</t:Culture>
<t:EffectiveRights>
<t:CreateAssociated>false</t:CreateAssociated>
<t:CreateContents>false</t:CreateContents>
<t:CreateHierarchy>false</t:CreateHierarchy>
<t:Delete>true</t:Delete>
<t:Modify>true</t:Modify>
<t:Read>true</t:Read>
</t:EffectiveRights>
<t:LastModifiedName>Julien Boron</t:LastModifiedName>
<t:LastModifiedTime>2014-09-25T16:35:02Z</t:LastModifiedTime>
<t:IsAssociated>false</t:IsAssociated>
<t:WebClientReadFormQueryString>
?ItemID=AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQBGAAAAAAB%2B%2B7WPj0UOSpefm%2BXK9KDTBwB%2B%2BBIZXYk3QZ9RhVxkdVIDAAAAAAETAAB%2B%2BBIZXYk3QZ9RhVxkdVIDAABHcgqjAAA%3D&exvsurl=1&viewmodel=TaskReadingPaneViewModelPopOutFactory
</t:WebClientReadFormQueryString>
<t:WebClientEditFormQueryString>
?ItemID=AAMkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQBGAAAAAAB%2B%2B7WPj0UOSpefm%2BXK9KDTBwB%2B%2BBIZXYk3QZ9RhVxkdVIDAAAAAAETAAB%2B%2BBIZXYk3QZ9RhVxkdVIDAABHcgqjAAA%3D&exvsurl=1&viewmodel=TaskReadingPaneViewModelPopOutFactory
</t:WebClientEditFormQueryString>
<t:ConversationId Id="AAQkADE3MDA2YWM0LTNiOWItNGEzYy05NDZiLWEzNDBjZGNjMDljNQAQANQdjNmPALIE6YAJmOz4Qn4="/>
<t:ActualWork>0</t:ActualWork>
<t:ChangeCount>1</t:ChangeCount>
<t:IsComplete>false</t:IsComplete>
<t:IsRecurring>false</t:IsRecurring>
<t:Owner>Julien Boron</t:Owner>
<t:PercentComplete>0</t:PercentComplete>
<t:Status>NotStarted</t:Status>
<t:StatusDescription>Not Started</t:StatusDescription>
<t:TotalWork>0</t:TotalWork>
</t:Task>
</m:Items>
</m:GetItemResponseMessage>
</m:ResponseMessages>
</m:GetItemResponse>
</s:Body>

</s:Envelope>

if someone has the solution or an explanation for this could you please post it. It'd be appreciated.



 


Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>