Skip to main content

Bug Tracker

Side navigation

Ticket #5665: ajax_problem.js


File ajax_problem.js, 0.5 KB (added by towser, December 16, 2009 03:02PM UTC)
var soapMessage = '<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> \
    				<S:Header/> \
    					<S:Body> \
        				<ns2:sayHello xmlns:ns2="http://main/"/> \
    					</S:Body> \
				 	</S:Envelope>';

var wsURL = "http://localhost:8080/TestJavascript/HelloWorldService";

$.ajax({
        url: wsURL,
        type: "POST",
        dataType: "xml",
        data: soapMessage,
		contentType: "text/xml; charset=\"utf-8\"",
        complete: onComplete,       
});

function onComplete(xData, status) {
	alert(status);
}

Download in other formats:

Original Format