You are developing an application that consumes a Windows Communication Foundation (WCF) service.
The application interacts with the service by using the following code. (Line numbers are included for reference
only.)
You need to authenticate to the WCF service.
What should you do?

A.
At line 11, add the following lines of code.
,username: yourusername
,password: yourpassword
B.
At line 11, add the following line of code.
,credentials: prompt
C.
At line 06, replace the code with the following line of code.
url: “http://contoso.com/Service.svc/GetCountry?
Username=username&password=password”,
D.
At line 11, add the following line of code. The username and password will be stored in an XML file.
,credentials: credentials.xml
can anyone tell me if C is the right answer?
I think it is A and in a earlier version it was A!
3
0
I think its A, too.
2
0
It’s obvious that it cannot be C. that’s a GET method and put the password in the url is the worst practices…
1
0
It’s A:
http://www.briefmenow.org/microsoft/you-need-to-authenticate-to-the-wcf-service-6/
C is just plain wrong.
0
0
A
1
0