Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Calling Method of WCF Service Hosted in IIS in HTML Page

$
0
0

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


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>