The other day I was having a coversation with a couple of my colleague about making web service calls via JavaScript. Within the .NET Web Service Ecosystem (e.g. ASMX web services) there are two popular technologies which are being used to facilitate this process
- Microsoft AJAX Extensions
- In order to make AJAX calls using this, the target Web Service must be decorated with the ‘[ScriptService]’ attribute which can be a problem if you do not own the web service.
- JavaScript SOAP Client
- This is an open source project that is delivered in the form of a .js file. The good news here is that you can see how it all works and have complete control over what you put in your projects
Here are a couple of links to get started with either…
Microsoft AJAX Extensions:
http://ajax.asp.net/docs/
(Look at the ‘Web Services’ Section)
Open Source JavaScript SOAP Client:
http://www.guru4.net/articoli/javascript-soap-client/en/
Working DEMOs
http://www.guru4.net/articoli/javascript-soap-client/demo/en.aspx
As a side note, either of these can be handy if you are developing service oriented Vista Gadgets... Enjoy...
Tags: web services