Question:QUESTION 52 You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes a Microsoft Windows Communication Foundation (WCF) service.
The WCF service exposes the following method.
[WebGet]
string GetCustomerDetails(string custID);
The application hosts the WCF service by using the following code segment.
WebServiceHost host = new WebServiceHost(typeof(CService), new Uri("http://win/")); ServiceEndpoint ep = host.AddServiceEndpoint(typeof(ICService), new WebHttpBinding(), "");
You need to invoke the GetCustomerDetails method.
Which code segment should you use?
A HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://win/GetCustomerDetails? custid=123");
B HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://win/GetCustomerDetails/ custid=123");
C HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://win/GetCustomerDetails/ custid/123");
D HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://win/GetCustomerDetails=123");