Unable to WhiteList emails of Exchange Account using EWS API[ SOAP Request]












0















We have Developed an application in JAVA which whitelist the emails in Junk
Email Folder in Exchange Office 365 account. It is/was working fine in
One mailbox where we got the proper response as well. But it's not
working in the Production Mailbox, earlier it was working fine.




Working Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode>



<m:MovedItemId Id="AQMkADc4ZGExOWRmMC1hGTEg/QAAAA==" ChangeKey="CQAAABYAAADH7Bc"/>


</m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>


Issue Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode></m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>



It Just says, "Success", but it is not moving to Inbox folder.



Please help me out to understand and looking for a positive solution.



Note: changekey in this snippet have been shortened to preserve
readability




New Findings
I am not able to trace the request/response using fiddler. it shows only the network traffic details, May be I'm doing wrong. I just played around the developer tools in chrome and found the below..
When I select Not a Junk and opt "Don't Report", it shows the below



{
"__type":"MarkAsJunkJsonRequest:#Exchange",
"Header":{
"__type":"JsonRequestHeaders:#Exchange",
"RequestServerVersion":"Exchange2013",
"TimeZoneContext":{
"__type":"TimeZoneContext:#Exchange",
"TimeZoneDefinition":{
"__type":"TimeZoneDefinitionType:#Exchange",
"Id":"West Asia Standard Time"
}
}
},
"Body":{
"__type":"MarkAsJunkRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QMAAA=",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1rA"
}
],
"IsJunk":false,
"MoveItem":true,
"SendCopy":false,
"JunkMessageHeader":"Outlook junk mail report",
"JunkMessageBody":"This message was automatically generated by the Junk Mail Reporting Tool in Outlook. The attachment and information below will help Microsoft to improve the quality of its junk mail filters in the future."
}
}


Note: Tried by sending "SendCopy":true and it's still the same



When I select Not a Junk and opt "Report", it shows the below ReportMessageToSafetyLibraryRequest



{
"__type":"ReportMessageToSafetyLibraryRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1Ks",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QLAAA="
}
],
"ReportAction":2,
"ActionData":null
}


I don't think we have option to handle ReportMessageToSafetyLibrary in SOAP Request.










share|improve this question
























  • What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
    – Glen Scales
    Nov 19 '18 at 22:30










  • @GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
    – Chella Kumaran
    Nov 20 '18 at 6:47










  • Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
    – Glen Scales
    Nov 20 '18 at 20:39










  • I am using the credentials of the owner of the mailbox only !
    – Chella Kumaran
    Nov 21 '18 at 11:18










  • It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
    – Glen Scales
    Nov 21 '18 at 23:40
















0















We have Developed an application in JAVA which whitelist the emails in Junk
Email Folder in Exchange Office 365 account. It is/was working fine in
One mailbox where we got the proper response as well. But it's not
working in the Production Mailbox, earlier it was working fine.




Working Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode>



<m:MovedItemId Id="AQMkADc4ZGExOWRmMC1hGTEg/QAAAA==" ChangeKey="CQAAABYAAADH7Bc"/>


</m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>


Issue Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode></m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>



It Just says, "Success", but it is not moving to Inbox folder.



Please help me out to understand and looking for a positive solution.



Note: changekey in this snippet have been shortened to preserve
readability




New Findings
I am not able to trace the request/response using fiddler. it shows only the network traffic details, May be I'm doing wrong. I just played around the developer tools in chrome and found the below..
When I select Not a Junk and opt "Don't Report", it shows the below



{
"__type":"MarkAsJunkJsonRequest:#Exchange",
"Header":{
"__type":"JsonRequestHeaders:#Exchange",
"RequestServerVersion":"Exchange2013",
"TimeZoneContext":{
"__type":"TimeZoneContext:#Exchange",
"TimeZoneDefinition":{
"__type":"TimeZoneDefinitionType:#Exchange",
"Id":"West Asia Standard Time"
}
}
},
"Body":{
"__type":"MarkAsJunkRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QMAAA=",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1rA"
}
],
"IsJunk":false,
"MoveItem":true,
"SendCopy":false,
"JunkMessageHeader":"Outlook junk mail report",
"JunkMessageBody":"This message was automatically generated by the Junk Mail Reporting Tool in Outlook. The attachment and information below will help Microsoft to improve the quality of its junk mail filters in the future."
}
}


Note: Tried by sending "SendCopy":true and it's still the same



When I select Not a Junk and opt "Report", it shows the below ReportMessageToSafetyLibraryRequest



{
"__type":"ReportMessageToSafetyLibraryRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1Ks",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QLAAA="
}
],
"ReportAction":2,
"ActionData":null
}


I don't think we have option to handle ReportMessageToSafetyLibrary in SOAP Request.










share|improve this question
























  • What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
    – Glen Scales
    Nov 19 '18 at 22:30










  • @GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
    – Chella Kumaran
    Nov 20 '18 at 6:47










  • Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
    – Glen Scales
    Nov 20 '18 at 20:39










  • I am using the credentials of the owner of the mailbox only !
    – Chella Kumaran
    Nov 21 '18 at 11:18










  • It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
    – Glen Scales
    Nov 21 '18 at 23:40














0












0








0








We have Developed an application in JAVA which whitelist the emails in Junk
Email Folder in Exchange Office 365 account. It is/was working fine in
One mailbox where we got the proper response as well. But it's not
working in the Production Mailbox, earlier it was working fine.




Working Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode>



<m:MovedItemId Id="AQMkADc4ZGExOWRmMC1hGTEg/QAAAA==" ChangeKey="CQAAABYAAADH7Bc"/>


</m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>


Issue Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode></m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>



It Just says, "Success", but it is not moving to Inbox folder.



Please help me out to understand and looking for a positive solution.



Note: changekey in this snippet have been shortened to preserve
readability




New Findings
I am not able to trace the request/response using fiddler. it shows only the network traffic details, May be I'm doing wrong. I just played around the developer tools in chrome and found the below..
When I select Not a Junk and opt "Don't Report", it shows the below



{
"__type":"MarkAsJunkJsonRequest:#Exchange",
"Header":{
"__type":"JsonRequestHeaders:#Exchange",
"RequestServerVersion":"Exchange2013",
"TimeZoneContext":{
"__type":"TimeZoneContext:#Exchange",
"TimeZoneDefinition":{
"__type":"TimeZoneDefinitionType:#Exchange",
"Id":"West Asia Standard Time"
}
}
},
"Body":{
"__type":"MarkAsJunkRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QMAAA=",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1rA"
}
],
"IsJunk":false,
"MoveItem":true,
"SendCopy":false,
"JunkMessageHeader":"Outlook junk mail report",
"JunkMessageBody":"This message was automatically generated by the Junk Mail Reporting Tool in Outlook. The attachment and information below will help Microsoft to improve the quality of its junk mail filters in the future."
}
}


Note: Tried by sending "SendCopy":true and it's still the same



When I select Not a Junk and opt "Report", it shows the below ReportMessageToSafetyLibraryRequest



{
"__type":"ReportMessageToSafetyLibraryRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1Ks",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QLAAA="
}
],
"ReportAction":2,
"ActionData":null
}


I don't think we have option to handle ReportMessageToSafetyLibrary in SOAP Request.










share|improve this question
















We have Developed an application in JAVA which whitelist the emails in Junk
Email Folder in Exchange Office 365 account. It is/was working fine in
One mailbox where we got the proper response as well. But it's not
working in the Production Mailbox, earlier it was working fine.




Working Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode>



<m:MovedItemId Id="AQMkADc4ZGExOWRmMC1hGTEg/QAAAA==" ChangeKey="CQAAABYAAADH7Bc"/>


</m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>


Issue Mailbox SOAP Response:



<?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Header><h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="1339" MinorBuildNumber="26" Version="V2018_01_08" xmlns:h="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"/></s:Header><s:Body><m:MarkAsJunkResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"><m:ResponseMessages><m:MarkAsJunkResponseMessage ResponseClass="Success"><m:ResponseCode>NoError</m:ResponseCode></m:MarkAsJunkResponseMessage></m:ResponseMessages></m:MarkAsJunkResponse></s:Body></s:Envelope>



It Just says, "Success", but it is not moving to Inbox folder.



Please help me out to understand and looking for a positive solution.



Note: changekey in this snippet have been shortened to preserve
readability




New Findings
I am not able to trace the request/response using fiddler. it shows only the network traffic details, May be I'm doing wrong. I just played around the developer tools in chrome and found the below..
When I select Not a Junk and opt "Don't Report", it shows the below



{
"__type":"MarkAsJunkJsonRequest:#Exchange",
"Header":{
"__type":"JsonRequestHeaders:#Exchange",
"RequestServerVersion":"Exchange2013",
"TimeZoneContext":{
"__type":"TimeZoneContext:#Exchange",
"TimeZoneDefinition":{
"__type":"TimeZoneDefinitionType:#Exchange",
"Id":"West Asia Standard Time"
}
}
},
"Body":{
"__type":"MarkAsJunkRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QMAAA=",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1rA"
}
],
"IsJunk":false,
"MoveItem":true,
"SendCopy":false,
"JunkMessageHeader":"Outlook junk mail report",
"JunkMessageBody":"This message was automatically generated by the Junk Mail Reporting Tool in Outlook. The attachment and information below will help Microsoft to improve the quality of its junk mail filters in the future."
}
}


Note: Tried by sending "SendCopy":true and it's still the same



When I select Not a Junk and opt "Report", it shows the below ReportMessageToSafetyLibraryRequest



{
"__type":"ReportMessageToSafetyLibraryRequest:#Exchange",
"ItemIds":[
{
"__type":"ItemId:#Exchange",
"ChangeKey":"CQAAABYAAAC46WWBQWmKS69lWTrD0xv/AAFlA1Ks",
"Id":"AAMkADk0ZTZmYzk0LWI1NTYtNDhiMi1hNWY1LTVkNjEwYjI5MGJjOQBGAAAAAABJb9uPcu8zT6LnpCUq3LWvBwC46WWBQWmKS69lWTrD0xv/AAABhxDBAAC46WWBQWmKS69lWTrD0xv/AAFjP1QLAAA="
}
],
"ReportAction":2,
"ActionData":null
}


I don't think we have option to handle ReportMessageToSafetyLibrary in SOAP Request.







java soap exchangewebservices






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 16:55

























asked Nov 19 '18 at 12:59









Chella Kumaran

5717




5717












  • What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
    – Glen Scales
    Nov 19 '18 at 22:30










  • @GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
    – Chella Kumaran
    Nov 20 '18 at 6:47










  • Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
    – Glen Scales
    Nov 20 '18 at 20:39










  • I am using the credentials of the owner of the mailbox only !
    – Chella Kumaran
    Nov 21 '18 at 11:18










  • It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
    – Glen Scales
    Nov 21 '18 at 23:40


















  • What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
    – Glen Scales
    Nov 19 '18 at 22:30










  • @GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
    – Chella Kumaran
    Nov 20 '18 at 6:47










  • Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
    – Glen Scales
    Nov 20 '18 at 20:39










  • I am using the credentials of the owner of the mailbox only !
    – Chella Kumaran
    Nov 21 '18 at 11:18










  • It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
    – Glen Scales
    Nov 21 '18 at 23:40
















What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
– Glen Scales
Nov 19 '18 at 22:30




What security context in the code running under ? not getting an Id back after a move sounds like its moved between mailboxes so maybe its been moved to callers Mailbox if its not being called with the owners creds.
– Glen Scales
Nov 19 '18 at 22:30












@GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
– Chella Kumaran
Nov 20 '18 at 6:47




@GlenScales What does it mean by security context here?.. And I'm just getting a connection of a single mailbox and invoking the whitelist operation through SOAP request. I'm not passing any other mailbox credentials here. Just wanted to understand how exchange account is rejecting the move here
– Chella Kumaran
Nov 20 '18 at 6:47












Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
– Glen Scales
Nov 20 '18 at 20:39




Are you using the credentials of the owner of the Mailbox ? or an account that has been granted Full Access to the TargetMailbox ?
– Glen Scales
Nov 20 '18 at 20:39












I am using the credentials of the owner of the mailbox only !
– Chella Kumaran
Nov 21 '18 at 11:18




I am using the credentials of the owner of the mailbox only !
– Chella Kumaran
Nov 21 '18 at 11:18












It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
– Glen Scales
Nov 21 '18 at 23:40




It would be worth trying to do the same thing in OWA, OWA uses the same EWS operation so you can capture the request and result using something like fiddler. I can't reproduce the issue myself
– Glen Scales
Nov 21 '18 at 23:40

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375200%2funable-to-whitelist-emails-of-exchange-account-using-ews-api-soap-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53375200%2funable-to-whitelist-emails-of-exchange-account-using-ews-api-soap-request%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith