eliza sahoo

eliza sahoo

  • NA
  • 41
  • 0

Consuming WebService and WCF from jQuery.

Feb 10 2010 6:36 AM
If Asp.net Ajax framework is used, web service and WCF service methods are consumed by ScriptManager. For jQuery framework, these services are consumed by following ways.
Example:
Create  Ajax-EnabledWCFService, name it "TimeService.svc".
Put Following code in the TimeService class.
 
 
[OperationContract]
 public string GetTime()
 {
  return "<B>" + "Current Server Time : " + DateTime.Now.ToLocalTime() + "</B>" ;
 }


Answers (1)