Can SOAP work with AJAX?

Can SOAP work with AJAX? The answer is yes, writes Michael Galpin on TheServerSide.com. His story discusses how Web services can be invoked directly from JavaScript clients, to produce an AJAX style Web application using Web services. Galpin works at eBay and much of his discussion centers around using WSO2 as a platform to build open source platforms for Web services and SOA. WSO2 and Axis can expose back-end APIs as Web services that can be consumed readily by JavaScript and XSLT, according to Galpin.

AJAX clients make HTTP requests, just like a typical SOAP request. They can make HTTP Posts and send an XML document in the body of the request, just like a SOAP request. They can set headers in the request, such SOAPAction header commonly used in SOAP. AJAX response handlers commonly process XML using the responseXML property of the XMLHttpRequest object. Thus they can easily accept XML, such as SOAP responses.

http://www.theserverside.com/tt/articles/article.tss?l=AJAXWSWithWSO2


Leave a Reply