I wish to call web services from my javascript. I have read a lot of the posts on here for example

Easiest Cleaning soap example using Javascript

However the example publish to webservicex.internet returns null (xmlhttp.responseXML in firebug). Where i recieve confused is the fact that each one of these libs/proxies/applications/etc discuss interacting having a web service however i aren't seeing js or it seems things are completed in the after sales.

I wish to call an internet service and also have everything came back to js, the way in which appears most rational may be the make use of a proxy server to create the request therefore the browser does not complain.

I am a new comer to the net server world, Apache mod_proxy and/or perhaps a proxy server are pretty ambiguous in my experience, The paperwork stated the things they did although not implement.. Can someone provide some links to place me within the right direction with a few good examples or lessons?

Thanks

With respect to the API, you'll be able to dynamically place a <script> tag to your document like:

<script src="http://www.otherdomain.com/list.php?category=23&order=2"></script>

Then your script can send back the produces a JS like:

yourCallback([{'Stool', 12000}, {'Table', 4000}]);

Not to mention the yourCallback() function you've written will populate the HTML document using the results.

Obviously it is dependent around the API you're using. If it's apublic API, it's interface is recorded and these things are hidden. If it's not a public API, you most likely aren't OK legally to gain access to their services from the third-party site.

If whatsoever possible, you might like to try to use JSONP to complete mix-domain AJAX demands. A fast breakdown of methods it even compares to normal JSON demands are available here.

You are able to write simple PHP (or whatever you prefer) script that takes URL and Publish/GET params, feeds these to remote server and prints out result for the javascript.

So, you are able to call non-remote script to retrieve remote content.