Last post Sep 23, 2014 05:48 AM by Fuxiang Zhang - MSFT
Sep 16, 2014 10:56 AM|Dr. Acula|LINK
I am consuming an Oracle CC&B web service but I am having problems connecting. I've dug around on this but hit a bit of a brick wall I'm not sure if the problem is on my side or a change needs to be made on the CC&B side. The error message I'm receiving
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="SokEvo"'.
my code looks like: (error occurs on the last line)
CBDS.CM_CashBackDataService dataService = new CBDS.CM_CashBackDataService();
dataService.controlData = lstExport.ToArray();
CBDS.CM_CashBackDataServicePortTypeClient client = new CBDS.CM_CashBackDataServicePortTypeClient();
client.ClientCredentials.UserName.UserName = Global.CashBackUsername;
client.ClientCredentials.UserName.Password = Global.CashBackPassword;
CBDS.CM_CashBackDataServiceResponse res = new CBDS.CM_CashBackDataServiceResponse(client.CM_CashBackDataService(dataService));
I realise these are custom objects I'm working with, but does anyone have any insight around the error in general?
Sep 17, 2014 06:44 AM|Dr. Acula|LINK
For anyone who comes across this, the solution is in the web.config, I added this to the binding
<transport clientCredentialType="Basic" proxyCredentialType="None" realm=""></transport>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
Sep 23, 2014 05:48 AM|Fuxiang Zhang - MSFT|LINK
Hi Dr. Acula,
Thanks for your sharing, I think it will be helpful to others who come across same issue.
If have any problem in the future, please feel free to post it to asp.net forum.