Monday, February 4, 2013

Call web service from Java Script

Needed to call a web service hosted locally from client side java script. This uses Web Service behavior file downloaded and exists in the project root directory. This HTC file can be download from here. Here is rest the code.

The following code should go into script block within HTML
 
       
In the body of the HTML have this line
body onload="initializeService()" id="service" style="behavior:url(webservice.htc)"
On button client click, have the following line
 

No comments:

Post a Comment