Ajax Example 5 - Calling a SOAP-based Web Service



Clicking the button below calls a SOAP 1.2-based web service to obtain the URL of a new background image for this page.

The PictureService web service contains three methods. We call its GetPicture method, which returns the URL of an image.  This page then modifies its own background to use that image.   See the web service's source code.

This page is allowed to call the web service only because they are both in domain http://harbormist.com.