![]() |
|
|
|
#1 |
|
Hi All,
this is the code which i am using to call a webservice in ASP.Net, which is working, but the same code is not working when called from C# windows application. WebService.CustomerService CustObj = new WebService.CustomerService(); //object NetworkCredential ntkCred = new NetworkCredential(System.Configuration.Configurati onManager.AppSettings["UserName"].ToString(), System.Configuration.ConfigurationManager.AppSetti ngs["PassWord"].ToString()); CredentialCache credCache = new CredentialCache(); //username and pwd from web.config credCache.Add(new Uri("http://xxx.com CustObj.Credentials = credCache; CustObj.GetCustomerDetails("00000000", "", "Username", out objCust); //webservice function in C# app,, i am unable to assign the credentialcache object to my webservice object like this CustObj.Credentials = credCache; in C# the intellisence doesn't show the Credential method instead it shows a ClientCredentials property. and this is the error: System.ServiceModel.Security.MessageSecurityExcept ion: The HTTP request is unauthorized with client authentication scheme 'Anonymous'.The authentication header received from the server was 'Basic realm="SAP Web Application Server [SAPDS]".--->System.Net .WebException: The remote server returned an error thanks,, suddu |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| AAA authentication problem for enable mode access | leopard | Hardware | 1 | 07-02-2007 08:08 AM |
| Cisco Aironet LEAP authentication problem | Naman Sharma | Hardware | 0 | 04-01-2007 12:25 PM |
| authentication problem (radius /tacacs) | hh_forum | Software | 0 | 07-07-2006 09:34 AM |
| Re: Virus Problem ** Help!** | David BlandIII | A+ Certification | 1 | 03-02-2004 06:00 PM |
| Re: Serious Computer Problem | hootnholler | A+ Certification | 1 | 11-24-2003 12:18 PM |