1
我必须托管在IIS和它接受这样http://host/myservice.svc/GetCount?method=?
连接的WCF服务,如何隐藏我的WCF服务的URL路径
我有一堆坐在公共领域,将调用上述服务的HTML页面无论如何可以轻松查看html源代码并找出这些服务的URL。
所以我的问题是我怎么能隐藏它从其他查看url路径?
myservices.svc/GetCount?method=?
而不是定义整个路径
$("#btn").click(function (event) {
var url = 'http://host/myservice.svc/GetCount?method=?';
$.getJSON(url, { Id: '2' }, function (customer) {
//to do....
});