You need to authenticate to the WCF service

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?

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=psssword”,

D.
At line 11, add the following line of code. The username and password will be stored in an
XML file.
,credentials: credentials.xml

Explanation:

http://msdn.microsoft.com/en-us/library/ie/hh673558(v=vs.85).aspx



Leave a Reply 3

Your email address will not be published. Required fields are marked *

two + eighteen =


Marko

Marko

The answer is C

JonDoe

JonDoe

Not sure if this is a serious answer or developers joke, but No, No, No! Never pass what should be secure information through GET, Always POST.

nex-54

nex-54

A looks correct