Proper way to call a WCF service using jQuery?
我不知道该URL用于使用jQuery调用WCF服务方法。我是WCF的新手。
1 | url:'http://localhost:8732/Design_Time_Addresses/RnDServiceLibrary/Service1/mex/SetJSON', |
以上操作无效。
使用服务url /方法,其中在服务中使用method。
Url =" http:// localhost:52136 / Service1.svc / GetCustomer";其中GetCustomer是在wcf服务中为您创建的方法。
请同时检查此链接
Wcf服务Jquery
我首先将wcf服务托管在localhost中,然后使用此URL