Hi Guys ,
I have WCF web service which has 2 methods this WCF is hosted in IIS
for example http://172.20.152.124:222/PushCRMData.svc
i would like to call one of the method from this WCF service in my HTML web resource using XMLHttpRequest.
for example i have a method in WCF called GetData() which returns some data.
i trying to call as below
var mainURL = 'localhost/.../GetData';
req.open("GET", encodeURI(mainURL), false);
but this method is not recognised when its called.
how can i call this method from this WCF ? in my HTML Page ?
any ideas ?
Regards,
Vilas