cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1307
Views
0
Helpful
3
Replies

TES API Authentication error

Reginald Hill
Level 1
Level 1

I'm using Microsoft Visual Studio and able to import the teswebservice?wsdl and schema. However, when I try to connect using the user ClientCredential.   I receive an authentication error below. Any idea?? See attachment..     

Web Service :        http://10.3.0.70:8080/api/tes-6.0/webservice/teswebservice?wsdl  

We tried connecting to this API by creating an object and respective properties – but it is failed to authorize the services. Here the following Error

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Tidal Application Realm"'.

 

 

3 Replies 3

Reginald Hill
Level 1
Level 1

I have update the attached image of the error with better clarity.   

Can you try setting the domain name separately, similar to how you have set Password ? I think setting domain\username is the culprit. For example:

_client.ClientCredentials.Windows.ClientCredential.Domain = "warzone42";
_client.ClientCredentials.Windows.ClientCredential.UserName = "user1428798";
_client.ClientCredentials.Windows.ClientCredential.Password = "p@ssw0rd";

Can you also try accessing the same webservice from a tool like SOAPUI ? Once done, you can see the request and response messages to troubleshoot. Such tools(SOAPUI) are Java based and will behave correctly as compared to when called from Visual Studio/.Net

Reginald,

 

Have you made any progress on this? I am running into a similar issue and not sure how to work around it. I am able to connect using Soap UI and also through Python using SUDS. I can't figre out connecting with C# using the TESWebServiceClient.

 

Thanks,

Brian

Review Cisco Networking for a $25 gift card