Call Webservice from HTML Page
How 开发者_StackOverflow社区we can call webservice from html page using javascript
Because of same origin restrictions, you might need to use JSONP through script injection.
Of course if you are talking a Web Service on the same origin, just use AJAX.
Through an web browser extension
using jQuery:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "WebService.asmx/WebMethodName",
data: "{}",
dataType: "json"
});
精彩评论