Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

Close
Important Announcement: WELCOME to the Schneider Electric Community! We have moved to a new address: community.se.com — bookmark it today and contact SchneiderCommunity.Support@se.com if you have any questions!
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
82805members
350645posts

How does the EwsClient connect to EBO 3.2 if MD5 is not enabled

SmartConnector Forum

Discussion of SmartConnector applications for integration of various other building management systems (BMS) into EcoStruxure Building Operation

SteveGregory
Commander Commander
Commander
0 Likes
1
196

How does the EwsClient connect to EBO 3.2 if MD5 is not enabled

With EBO 3.2, the MD5 hash is disabled by default and when connecting using an EwsClient from SmartConnector Nuget package 2.4.36.0 i get the following error: 

 

System.ServiceModel.Security.MessageSecurityException: 'The HTTP request is unauthorized with client authentication scheme 'Digest'. The authentication header received from the server was 'Digest realm="ews@SxWBM",qop="auth",algorithm="SHA-256",nonce="...

 

Should I be enabling MD5 in EBO (which works) or am i missing something when i create the EwsClient? Relevant snippets from my code below:

 


EwsServer EsSrv = new EwsServer()
{
UserName = "*******",
Password = "********",
EwsEndpoint = "http://192.168.68.200:88/EcoStruxure/DataExchange"
};

 

using (var ewsClient = CreateConnection(EsSrv))
{
GetAlarmEventsResponse activeAlarms = ewsClient.GetAlarmEvents(1, 3, "", null);

}


public class EwsServer
{
public string UserName { get; set; }
public string Password { get; set; }
public string EwsEndpoint { get; set; }
}

 


static EwsClient CreateConnection(EwsServer EsSrv)
{
var ewsSecurity = new EwsSecurity
{
UserName = EsSrv.UserName,
Password = EsSrv.Password
};
return new EwsClient(ewsSecurity, EsSrv.EwsEndpoint, EwsVersion.Ews12);
}



 

Attachments
1 Reply 1
JeffBowman
Schneider Alumni (Retired)
Schneider Alumni (Retired)
0 Likes
0
188

Re: How does the EwsClient connect to EBO 3.2 if MD5 is not enabled

Hi Steve,

 

The MD5 setting (disabled or not) should have any influence on if this works or not!

 

I have just tested it locally, and it seems to work in either case.

 

Generally the error below is because the credentials are incorrect.. or the EBO server is out of Sockets.

 

I will reach out to you to debug.

 

Best Regards,

 

-Jeff

Tags (1)