How to detect exchange server version using EWS API?
Hello there,
I am new to this EWS area and I am looking for a way to detect exchange server version information whether user mailbox is exchange 2007 or 2010 or 2013 etc. Apologize if we already have such question posted earlier, I am posting it here as I could now find
any such forum.
1. Is it possible to fetch this information using EWS API? I am using EWS 2.0 libraries for now.
2. If yes, how can i get that information? can you please provide some sample?
Thanks in advance.
sureshh...
1. On 2010 and above you can use Autodiscover to get the EWS Schema version this is most accurate method to use. It's import to understand the EWS Schema version vs just the Server there is a good write up in
http://msdn.microsoft.com/en-us/library/office/dn741586%28v=exchg.150%29.aspx . Some EWS Managed API code to get the server version would look like
AutodiscoverService adAutoDiscoverService = new AutodiscoverService();
adAutoDiscoverService.Credentials = ncCred;
adAutoDiscoverService.EnableScpLookup = true;
adAutoDiscoverService.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
adAutoDiscoverService.PreAuthenticate = true;
adAutoDiscoverService.TraceEnabled = true;
adAutoDiscoverService.KeepAlive = false;
GetUserSettingsResponse adResponse = adAutoDiscoverService.GetUserSettings("[email protected]", (new UserSettingName[1] { UserSettingName.EwsSupportedSchemas }));
This won't work on 2007 but the other method you can use is if you set the version to 2007_SP1 and make a call like binding to the Inbox folder and then check the result in ServerInfo http://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.exchangeservicebase.serverinfo(v=exchg.80).aspx
. (Note if your are going to use ServerInfo you do need to make a request like a FolderBind ).
Cheers
Glen
Similar Messages
-
How to find the server path using servlet API.
Hi All,
I have an requirement like uploading certain files in my server path.
rightnow i am getting the path now using as
<%=application.getRealPath("/")%> and its giving me the "D:\bea\user_projects\domains\Testdomain\TestmanagedServer\stage\nextgen\nextgen.war".
but i want to get the D:\bea\weblogic81 or atleast D:\Bea
Is there anyway to get this through API or its the only way through string parse.
Thanks in advance.Hello,
I have:
DG URL Internal;https://OCS.ad.xxxxxx.xxxx.xxx/GroupExpansion/Int/service.asmx;--;
DG URL External;;--;
Quality Metrics URI;;--;
URL Internal From Server;https://OCS.ad.xxxxxx.xxxx.xxx/Abs/Int/Handler;--;
URL External From Server;;--;
Voice mail URI;sip:[email protected];opaque=app:voicemail;--;
MRAS Server;;Not Configured;
GAL Status;https://OCS.ad.xxxxxx.xxxx.xxx/Abs/Int/Handler;--;
Controlled Phones;TRUE;--;
PC to PC AV Encryption;AV Encryption Enforced;--;
Focus Factory;sip:[email protected];gruu;opaque=app:conf:focusfactory;--;
Telephony Mode;Telephony Mode Disabled;--;
Line;;--;
Line Configured From;Auto Line Configuration;--;
Location Profile;;--;
Local Log Folder;C:\Users\me\tracing;;
MAPI Information;MAPI Status OK;MAPI Status OK;
Inside User Status;TRUE;;
Auto Update Download Started;--;--;
Auto Update Download Completed;--;--;
Last Auto Update Request;--;--;
Pairing State;Communicator cannot connect to your desk phone because the USB cable is not plugged in. Make sure that you connect the cable.;Enabled;
I see my email on the sip line but no server... what do I miss?
Is it by the URL?
Thanks,
Dom -
I just notice that talking to Office365 Exchange Web Services at https://outlook.office365.com/ews/exchange.asmx I get this in my SOAP response header:
<Envelope>
<Header>
<ServerVersionInfo MajorVersion="15" MinorVersion="0" MajorBuildNumber="1049" MinorBuildNumber="23" Version="V2_22"/>
</Header>
This means that the Version 'schema version' property (http://msdn.microsoft.com/en-us/library/exchangewebservices.serverversioninfo.version%28v=exchg.150%29.aspx) now breaks the pattern of versions that we had earlier: Exchange2007, Exchange2007_SP1, Exchange2010,
Exchange2010_SP1, Exchange2010_SP2, Exchange2013
In the schema files I found through Google (searching for <xs:simpleType name="ExchangeVersionType">) I could not find anything later than <xs:enumeration value="Exchange2013"/> (e.g. at http://msdn.microsoft.com/en-us/library/ee237685%28v=exchg.80%29.aspx)
If I do a SOAP request with this "V2_22" string, I still get valid answers.
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages">
<soapenv:Header>
<typ:RequestServerVersion Version="V2_22"/>
</soapenv:Header>
But it now looks as if the returned Version is no longer a reliable way to determine the Exchange server version. If V2_22 is not documented anywhere, who says it will not suddenly change to V2_23 tomorrow?
Question: Does this mean I will now have to change my version detection code to look at MajorVersion and then maintain a cross reference between MajorVersion and ExchangeVersionType **myself**? That is horrible: another dependency to maintain
is another potential code break.
As an aside: Note that the "Exchange Server Updates: build numbers and release dates" at http://technet.microsoft.com/en-us/library/hh135098%28v=exchg.150%29.aspx is no longer up to date, it does not mention the 15.0.1049.23 that my XML just returnedWhat really matters in EWS is the SchemaVersion as that will tell you what operations you can and can't use. From 2010 on you can use AutoDiscover to find what SchemaVersions are supported which is the best way to do version detection. eg
AutodiscoverService adAutoDiscoverService = new AutodiscoverService(ExchangeVersion.Exchange2010);
adAutoDiscoverService.Credentials = ncCred;
adAutoDiscoverService.EnableScpLookup = false;
adAutoDiscoverService.RedirectionUrlValidationCallback = adAutoDiscoCallBack;
adAutoDiscoverService.PreAuthenticate = true;
GetUserSettingsResponse adResponse = adAutoDiscoverService.GetUserSettings("[email protected]", (new UserSettingName[1] { UserSettingName.EwsSupportedSchemas }));
if (adResponse.Settings.Count >= 1)
String schemas = (String)adResponse.Settings[UserSettingName.EwsSupportedSchemas];
I would be careful using the Major build going forward if you have a look at the requests in OWA in Office365 you'll see they are using version 16 in cookies etc
Cheers
Glen -
Connecting to Exchange Server 2013 using IMAP command gives authenication error
Hello All,
My application (it is a C# code) connects to Microsoft exchange server 2013 using POP3 and IMAP, processes the emails, marks as read and move to particular folder if it is processed successfully else to an different folder. In this sometimes,
I am getting authentication failed error from IMAP however same mail is processed when it is executed next time. Few times it is processed with out error. I am not sure what is causing this issue.We are connecting to IMAP using tcpIMAP command.
This is the same application which we used with exchange server 2010 now we are upgrading to exchange server 2013. I have verified that the setting of exchange 2010 and 2013 are the same.
To verify the IMAP command I created a sample application using C# which will try to connect to IMAP service and log in to exchange server 2013; it fails to authenticate the user after connecting for few times and then it starts to authenticate
successfully then again fails for few times and then authenticates. I am not sure why this is happening.
Please suggest how can I resolve this.
Thank you, SanthaSince I've upgraded to Snow Leopard I've also moved from Entourage 2008 to Mail, iCal & Addressbook with the new Exchange support.
My company exchange server is Exchange 2007.
Mail works fine except the occasional Mail crash.
iCal worked fine the first two days and then it came with an error the it cannot connect to the Exchange server and asks me to type my email address again. Doesn't work so I need to put my exchange calendar in iCal in offline. But now there is no syncing with the Echange server.
This only occurs when I add a meeting request in iCal.
My Exchange administrator has reset my mailbox on the Exchange server.
This helped for about 4 hours. Now it's the same problem.
I have a feeling the when you setup your exchange account in Mail it uses different settings for Mail and iCal with the autoconfig.
Anybody has a solution? My Exchange admin cannot find any problems on his side. Do I need to make changes on my iCal client or do we need to wait for OS 10.6.1 ? -
if the Microsoft Forefront Protection 2010 for Exchange Server can use for exchange server 2013?
thanks for your reply!
what's protection software can use for exchange server 2013?
Hi,
Most (if not all) of the bigger vendors has a product that supports Exchange 2013, so look them up.
Exchange 2013 has some Anti-Spam and Anti-Malware Protection functionality that you can read about here:
http://technet.microsoft.com/en-us/library/jj150481(v=exchg.150).aspx
Martina Miskovic -
How to connect Sql Server 2000 using JDBC ODBC Driver
How to connect Sql Server 2000 using JDBC ODBC Driver ?
plz Send Syntax.
thanksIn SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
Class.forName(
"com.microsoft.sqlserver.jdbc.
SQLServerDriver");
String url =
"jdbc:sqlserver://localhost:1433";
Connection conn = DriverManager.
getConnection(
url, "sa", "sqlserver"); -
MIME content conversion failed error while processing "550 5.6.0" NDR using EWS API
While trying to process journal report having "550 5.6.0" NDR with the following content using EWS API
*Delivery has failed to these recipients or groups:
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
[email protected] ([email protected])
The email system had a problem processing this message. It won't try to deliver this message again.
Diagnostic information for administrators:
Generating server: ALMPR02MB001.namprd05.prod.outlook.com
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
[email protected]
Remote Server returned '550 5.6.0 M2MCVT.StorageError; storage error in content conversion'
Original message headers:
Received: from ALMPR02MB001.namprd05.prod.outlook.com ((11.255.110.102)) by
ALMPR02MB001.namprd05.prod.outlook.com ((11.255.110.102)) with
ShadowRedundancy id 15.0.851.11; Fri, 24 Jan 2014 12:20:42 +0000
Received: from AN2PR05MB011.namprd05.prod.outlook.com (10.255.202.146) by
ALMPR02MB001.namprd05.prod.outlook.com (11.255.110.102) with Microsoft SMTP
Server (TLS) id 15.0.851.11; Wed, 22 Jan 2014 19:25:20 +0000
Received: from AN1PR05MB018.namprd05.prod.outlook.com ([159.254.10.28]) by
AN1PR05MB018.namprd05.prod.outlook.com ([159.254.10.28]) with mapi id
15.00.0851.011; Wed, 22 Jan 2014 19:25:19 +0000
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: "Aron,Shakton"
To: "[email protected]" ,
"[email protected]" , "[email protected]"
Subject: Updated: Drive # 3
Thread-Topic: Updated: Drive # 3
Thread-Index: AQHPF6evINDh6QBmQ0OJyeaK0OyWzQ==
Date: Wed, 22 Jan 2014 19:25:18 +0000
Message-ID: <[email protected]ok.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: <[email protected]ok.com>
MIME-Version: 1.0
X-Originating-IP: [::]
Return-Path: [email protected]
X-Forefront-PRVS: 01018CB5B3
X-Forefront-Antispam-Report:
SFV:NSPM;SFS:(10019001)(6009001)(199002)(189002)(377454003)(2656002)(81816001)(81686001)(54316002)(49866001)(63696002)(65816001)(16799955002)(74876001)(47976001)(77982001)(81342001)(79102001)(94316002)(76576001)(56776001)(47736001)(50986001)(85852003)(54356001)(77096001)(74316001)(53806001)(69226001)(80976001)(4396001)(51856001)(83322001)(93136001)(85306002)(46102001)(19580395003)(74662001)(15975445006)(74706001)(15202345003)(76786001)(59766001)(83072002)(81542001)(76176001)(76796001)(87936001)(87266001)(92566001)(2201001)(47446002)(93516002)(33646001)(90146001)(31966008)(56816005)(74366001)(86362001)(24736002)(3826001);DIR:OUT;SFP:1102;SCL:1;SRVR:ALMPR02MB001;H:AN2PR05MB011.namprd05.prod.outlook.com;CLIP:::;FPR:;RD:InfoNoRecords;A:0;MX:1;LANG:en;*
I am getting the following error.
ERROR Message: MIME content conversion failed.
Stack Trace : at Microsoft.Exchange.WebServices.Data.ServiceResponse.InternalThrowIfNecessary()
at Microsoft.Exchange.WebServices.Data.ExchangeService.InternalGetAttachments(IEnumerable`1 attachments, Nullable`1 bodyType, IEnumerable`1 additionalProperties, ServiceErrorHandling errorHandling)
at Microsoft.Exchange.WebServices.Data.ExchangeService.GetAttachment(Attachment attachment, Nullable`1 bodyType, IEnumerable`1 additionalProperties)
Has anyone faced this issue? how s/he got past this?
Regards
Call
Send SMS
Add to Skype
You'll need Skype CreditFree via SkypeMokchhya-
I responded to your
StackOverflow post as well, but I'll respond here as well.
Are you using Exchange Server 2010 SP3 RU2? If not, that might fix the issue. Another poster ran into a similar error and they were also sending an email with an attachment:
http://social.technet.microsoft.com/Forums/en-US/fd7ef80e-f80b-47ed-883b-a34511c6233c/a-storage-transient-failure-has-occurred-during-content-conversion?forum=exchangesvrsecuremessaginglegacy.
The support page related to the fix is here:
http://support.microsoft.com/kb/2863310.
-Mimi -
Export a mail as PST file using EWS API
Hi,
I need to export the Exchange mails to PST file without installing the outlook. To acheive this i am choosing the EWS API. but i dont know how to do that. So, now i have a two questions, the first one, is it possible to create the pst file using EWS API?.
If yes, how to create a pst file using EWS, if any one posted the sample code here, it is very helpful for me.
Thanks,
RamMohanEWS is not going to help you do what your trying to do, EWS is an Exchange API so you need to have an Exchange 2007 server or greater with the MailStore mounted to even use it to access the Mailbox . EWS also doesn't support exporting email to a PST because
the PST file is an Office file format so in the case where you do manage to mount the database on Exchange then use Adam's suggestion or just connect via Outlook and export the Mailbox.
>> I am parsing the mails from the exchange EDB files
With what ? reading the contents of an EDB file directly is not supported although there are a few third party apps that can do it and if your using one of those apps then all of them I've seen support the export to PST (unless your using a Trial licence).
The correct method of recovering data from an EDB file would be to use a Recovery Database
https://technet.microsoft.com/en-us/library/dd876954(v=exchg.150).aspx even if you don't have access to the environment you should be able to setup a temp environment using Virtual machines and recover it that way.
Cheers
Glen -
How to assign roles to users using WL api?
Hi,
We have a requirement to allow creation of new users through application screens and assign groups and roles to those users.
My users will exist in external LDAP server while my groups and roles will exist in embedded LDAP server. Using WL APIs i am able to create users and add them to groups using the code peices given below:
========================================
userProviderControl.createUserSimple(form.userID, form.password);
groupProviderControl.addUserToGroup(ocnGroup, form.userID);
========================================
How do i assign roles to this new user programatically?
If i add a role from console (Home > Realm Roles > Summary of Security Realms > myrealm > Realm Roles -> Global Roles) and edit role condition to add this newly created user then i it works fine. I want to achieve the same i.e. edit role condition programatically.
Any help will be greatly appreciated.
Thanks,Problem Solved !!!
The data-type conversion needs to be performed in the SPML2 Person Form. Add a Field called waveset.roles and map it to the SPML2 attribute name being used in ur client. It's best done through a rule.....
If anybody is facing similar problem and need more details....please email me @ [email protected] -
Plug_in:how to unlock a locked document use acrobat API
how to unlock a locked document use acrobat API.in acrobat plug_in
how to unlock a locked document use acrobat API.in acrobat plug_in(Which API can enter a password to unlock the locked document)
-
How to create a project templace using a API?
Hi all,
I can create a project using API PA_PROJECT_PUB.create_project, but how to create a project templace using a API?
thanks for your any effort.
CarilHi Caroline:
If sub projects are not supported currently, does the EDK API support creating the project folders under a project? Please let me know.
Thanks.
Bhanu -
How to retrieve data from MDM using java API
hi experts
Please explain me the step by step procedure
how to retrieve data from MDM using java API
and please tell me what are the
important classes and packages in MDM Java API
thanks
ramuHi Ramchandra,
You can refer to following links
MDM Java API-pdf
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2d18d355-0601-0010-fdbb-d8b143420f49
webinr of java API
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/89243c32-0601-0010-559d-80d5b0884d67
Following Fourm Threads will also help.
Java API
Java API
Re: usage of java API ,
Matching Record
Need Java API for Matching Record
Thanks and Regards,
Shruti.
Edited by: Shruti Shah on Jul 16, 2008 12:35 PM -
How to reverse an image acquired using IMAQ APIs in vc++
how to reverse an image acquired using IMAQ APIs in vc++
When using imaqFlip, may the source and destination be the same Image* ?
TIA!
Jesse -
How to find a annotation object using plugin API?
How to find a annotation object using plugin API?
You would use PDPage methods to find out how many on a page, and to
get them in turn.
Aandi Inston -
How To Create Lync Online Meeting Using EWS
Does anyone know how to create a Lync Online Meeting Using EWS (Exchange Web Service API). The exchange version I'm using is 2010 SP2.
I'm able to successfully create a regular meeting/appointment using EWS and now I'm trying to create a lync online meeting using EWS which will incorporate the lync online meeting URL in the invite that gets send out to attendees.
I'm using C#. I have try setting the Appoinment IsOnlineMeeting property to true but I'm not seeing any changes it is having. I see that the Appointment object also has a JoinOnlineMeetingUrl property which I have tried to use but I got an exception because
my exchange version is 2010 and it requires the 2013 version.
I've been researching this for a couple of days now and I've yet to find a solution for it. Any help would be appreciated.
Thanks,Hi.
I see that you have the same problem. I'm trying to create an online meeting with EWS (or UCMA 3.0?) without results. Have you resolved? Can you post your code?
Thanks in advance.
Maybe you are looking for
-
So I'm trying to display my 15" mbp 2.16 c2d onto a 20" Panasonic flat SCREEN (not flat panel) CRT TV. My mac has dvi out (not mini) and my computer has RGB (component) in. I bought a cable online that is DVI female to RGB Male... to go from my mbp t
-
The overall capacity is supposed to be 8 gb, but on itunes it show much less storage space. What is the Reason????
-
New Ipod Mini (2nd Generation) Unrecognized by Windows XP Pro
I'm beside myself with frustration after two days of trying to get this to work. Three XP Pro computers tell me "USB Device not recognized - One of the USB devices attached to this computer has malfunctioned - Windows does not recognize it. For assis
-
Rounding value for PR Quantity
Dear Expert, Can we have rounding value for order quantity in Purchase Requisition? So we do not need to calculate the PO quantity based on the rounding value we have determined in material master / get the error message "Order quantity violates rou
-
HI, Since customer has upgraded from 4.0.1 to 4.2.1, he can't display job information when he select job number. He has http 404 error. He has same error when he want to see threshold configuration: Menu Monitor>Fault Monitor > threshold setting We n