ipjyo
asked on
How to pass network credentials to a web service using WCF framework?
HI,
I am using WCF to communicate with a web service. I need to do use network credentials to communicate with the web service. I have the below two lines to create the channel. Is there any property on the ChannelFactory to set the network credentials? Thank you.
System.ServiceModel.Channe lFactory<F FWebServic e.FFChanne l> channelFactory = new System.ServiceModel.Channe lFactory<F FChannel>( "FFOrderPo rt");
FFWebService.FFChannel channel = channelFactory.CreateChann el();
I am using WCF to communicate with a web service. I need to do use network credentials to communicate with the web service. I have the below two lines to create the channel. Is there any property on the ChannelFactory to set the network credentials? Thank you.
System.ServiceModel.Channe
FFWebService.FFChannel channel = channelFactory.CreateChann
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How to send credentials from silverlight to web service....
Everytime i'm getting the authentication dialog when i run my application
Below is my code:
BasicHttpBinding AdminService_Binding = new BasicHttpBinding();
EndpointAddress WM_AdminService_Endpoint = new EndpointAddress(ConfigMana ger.WM_Adm inServiceU RL);
WebRequest.RegisterPrefix( "https://", WebRequestCreator.ClientHt tp);
MyAdminService.ClientCrede ntials.Use rName.User Name = ConfigManager.ListenerServ iceUserNam e;
MyAdminService.ClientCrede ntials.Use rName.Pass word = ConfigManager.ListenerServ icePasswor d;
Everytime i'm getting the authentication dialog when i run my application
Below is my code:
BasicHttpBinding AdminService_Binding = new BasicHttpBinding();
EndpointAddress WM_AdminService_Endpoint = new EndpointAddress(ConfigMana
WebRequest.RegisterPrefix(
MyAdminService.ClientCrede
MyAdminService.ClientCrede
ASKER