codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>New Web Project</title>
		<script src="jquery-1.3.2.js" type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript">

		$(document).ready(function() {


	var productServiceUrl = 'http://localhost:8080/Pesce2/proxy2.jsp'; // Preferably write this out from server side

	var soapMessage = ... //messaggio di richiesta al web service

	$.ajax({
	url: productServiceUrl,
	type: "POST",
	timeout: 120000,
	dataType: "xml",
	data: soapMessage,
	complete: endSaveProduct,
	error: function( objAJAXRequest, strError ){
		$( "h1" ).text(
		"Error! Type: " +
		strError
		);
		},
	contentType: "text/xml; charset=\"utf-8\""
	});

	function endSaveProduct(xmlHttpRequest, status)
	{
		
		var matches = xmlHttpRequest.responseText.match(/<ns:return>(.*)<\/ns:return>/m);
		var json = eval(matches[1]);
		$( "h1" ).text(json);

	}

	});

</script>

		
    </head>
    <body>
        <h1>New Web Project Page</h1>
    </body>
</html>