DRAG DROP
Exhibit:
[ServiceContract]
public interface ICatalog
{
[OperationContract] [WebGet(UriTemplate = “/Catalog/Items/{id}”,
ResponseFormat = WebMessageFormatJson)]
string PassGuideRetrieve(int id);
}
There is a WCF (Windows Communication Foundation) service.
The service is consumed by an ASP. NET Web application PassGuideApp.
/Catalogsvc is used to host the service.
The definition of the service is displayed in the exhibit.
JQuery, with variable EmployeeID, must be used to call the service to obtain data of an item
indicated by EmployeeID.
How can this be achieved?
Explanation: