I want to Post an XML structure via AJAX to get a filtered result set. The webservice is able to handle post requests, but something seems to be wrong with my POSTing.
$.ajax({
url: ajaxurl,
data: {
inputxml: escape('')
},
type: 'POST',
contentType: "text/xml",
dataType: "text",
success : parse,
error : function (xhr, ajaxOptions, thrownError){
alert(xhr.status);
alert(thrownError);
}
});
XML:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:f="urn:foo">
5
15
Thanks