exchangewebservices

How do I drop an inbound XML element with a Transform in CXF?

天大地大妈咪最大 提交于 2021-02-07 07:56:20
问题 I'm using CXF (v2.7.10) in a client that is consuming the MS Exchange Web Service (EWS). I'm finding that one of the elements returned by EWS (UniqueHash) contains characters that are invalid in XML v1.0. As I have no control over this I'm trying to use an inbound interceptor to drop the UniqueHash elements (I don't need them) like this: Map<String, String> inTransformMap = Collections.singletonMap( "{http://schemas.microsoft.com/exchange/services/2006/types}UniqueHash", "");

How do I drop an inbound XML element with a Transform in CXF?

回眸只為那壹抹淺笑 提交于 2021-02-07 07:55:06
问题 I'm using CXF (v2.7.10) in a client that is consuming the MS Exchange Web Service (EWS). I'm finding that one of the elements returned by EWS (UniqueHash) contains characters that are invalid in XML v1.0. As I have no control over this I'm trying to use an inbound interceptor to drop the UniqueHash elements (I don't need them) like this: Map<String, String> inTransformMap = Collections.singletonMap( "{http://schemas.microsoft.com/exchange/services/2006/types}UniqueHash", "");

Azure Information Protection | How to decrypt .EMLs coming from EWS API?

自闭症网瘾萝莉.ら 提交于 2021-02-07 04:33:06
问题 Given: We use EWS API to download email messages from Office 365 (Exchange Online) When emails are encrypted using AIP, body comes in encrypted Admin user is super-user - this user's creds are used to make requests against EWS Ask: In order to decrypt, it seems that we need to use https://docs.microsoft.com/en-us/information-protection/develop/concept-handler-protection-cpp . Is this the correct API to use? If so, above API is in C++. Is there anything available in C#? Simple samples of how

Error “suds.transport.TransportError: HTTP Error 401: Unauthorized” using suds-py3 SOAP client in python3

大兔子大兔子 提交于 2021-01-29 17:48:44
问题 Trying to write a client in python 3 using suds and ewsclient in order to connect to the Exchange Web Services. I have checked my connection to the WSDL URL using the below CURL command: curl -u username:password -L https://exchange_server/EWS/Services.wsdl -H "Content-Type:text/xml" --ntlm I got back the WSDL xml schema using the above command. My client code is: def test_client(): #variables defined, can't disclose transport = WindowsHttpAuthenticated(username=username, password=password)

How can I access a mailbox with restricted permissions through EWS without interactive login?

淺唱寂寞╮ 提交于 2021-01-29 06:47:26
问题 We need to read out distribution lists from a contact folder of a dedicated exchange/outlook mailbox (O365). The process must run as a service with no user interaction. Unfortunately the Graph API does not support distribution lists (not even the Graph beta version does). Because of this we have to use another API - I tried using EWS. I succeeded by granting full_access_as_app permission to our service. However this allows to read and modify ANY data in ANY mailbox which is a security risk.

EWS returns “Custom Time Zone” - how to store it in SQL?

橙三吉。 提交于 2021-01-28 19:30:53
问题 When using the EWS GetUserAvailability() function, I get in the AttendeesAvailability[i] object a WorkingHours object containing a Start, an End, the WeekDays, and a TimeZoneInfo object. For me, the TimeZoneInfo object always has the name Custom Timezone and a GUID as ID, so I cannot restore the very same time zone using FindSystemTimeZoneById . The time zone that the user can select for his availability, however, is one of the system time zones, so I really expected to find a system time

EWS returns “Custom Time Zone” - how to store it in SQL?

╄→尐↘猪︶ㄣ 提交于 2021-01-28 19:20:51
问题 When using the EWS GetUserAvailability() function, I get in the AttendeesAvailability[i] object a WorkingHours object containing a Start, an End, the WeekDays, and a TimeZoneInfo object. For me, the TimeZoneInfo object always has the name Custom Timezone and a GUID as ID, so I cannot restore the very same time zone using FindSystemTimeZoneById . The time zone that the user can select for his availability, however, is one of the system time zones, so I really expected to find a system time

Exchangelib error in Python: www-authenticate

淺唱寂寞╮ 提交于 2021-01-28 07:05:09
问题 I'm randomly facing an authentication error using library exchangelib: from exchangelib import DELEGATE, Account, Credentials creds = Credentials( username=username, password=pw) account = Account( primary_smtp_address=mailbox_mail, credentials=creds, autodiscover=True, access_type=DELEGATE ) The definition of the account variable causes the following error, but can't find why or anything useful in the relative documentation: [2020-09-03 15:00:56,588] {taskinstance.py:1059} ERROR - 'www

Exchange EWS get BCC Recipients

狂风中的少年 提交于 2021-01-27 20:42:34
问题 I am using EWS to create a StreamingSubscription on an inbox. It is listening for the NewMail event. I am able to pull the From Address, Subject, Body, To Address, CC Address but not the BCC Address. Is there any way to see this list? CODE: static void OnEvent(object sender, NotificationEventArgs args) { String from = null; String subject = null; String body = null; String to = null; StreamingSubscription subscription = args.Subscription; // Loop Through All Item-Related Events foreach

Saving an email to a .MSG file using EWS Managed API

本小妞迷上赌 提交于 2021-01-27 07:57:38
问题 My current project runs a service on a Microsoft Exchange 2010-based email address, dedicated to apply custom rules to incoming emails. As I am browsing through the possible C#-based solutions, EWS managed API seems like the best API to use for me. Every email action I need was found, but there is one extremely big one missing... Saving an email to a .msg file. Which is quite surprising to me given how easy of an action it is from Outlook (simply drag and drop from Outlook to any folder).