Clicky

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.ChannelFactory<FFWebService.FFChannel> channelFactory = new System.ServiceModel.ChannelFactory<FFChannel>("FFOrderPort");
            FFWebService.FFChannel channel = channelFactory.CreateChannel();

asked 12/15/2011 03:33

ipjyo's gravatar image

ipjyo ♦♦


2 Answers:
You need to set the security mode and credentials of the service binding:

http://msdn.microsoft.com/en-us/library/ms733089.aspx
link

answered

Tchuki's gravatar image

Tchuki

Thank you.
link

answered 2011-12-15 at 14:50:00

ipjyo's gravatar image

ipjyo

Your answer
[hide preview]

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

Asked: 12/15/2011 03:33

Seen: 276 times

Last updated: 12/15/2011 11:16