You create the following WCF Data Service:

public class Northwind : DataService<NorthwindEntities>
{
...
[WebGet]
public IQueryable<Order> GetOrdersByCity(string city)
{
...
}
}

You need to retrieve the entities returned by the GetOrdersByCity service operation for the city Redmond.

Which URI should you use?

 Posted by Rajkatie on 9/1/2012 | Category: ADO.NET Interview questions | Views: 1403 | Points: 40
Select from following answers:
  1. http://localhost:12345/Northwind.svc/GetOrdersByCity?city='Redmond'
  2. http://localhost:12345/Northwind.svc/GetOrdersByCity('Redmond')
  3. http://localhost:12345/Northwind.svc/GetOrdersByCity/city/Redmond
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response