This way of Posting Xml doc is not working. I tried storing an xml doc in the inputXML passed .Below is my code
function createXMLDocument(s) {
var xmlDoc;
if (window.DOMParser) {
var parser = new DOMParser();
xmlDoc = parser.parseFromString(s, 'text/xml');
} else {
xmlDoc = new ActiveXObject('Microsoft.XMLDOM');
xmlDoc.async = 'false';
xmlDoc.loadXML(s);
}
return xmlDoc;
}
var xmlString = createXMLDocument(xmlData);
$.ajax({ async: 'false',
cache: 'false',
contentType: 'text/xml',
data: createXMLDocument(xmlString),
datatype: 'json',
processData: false,
type: 'POST',
url: 'ws/default.aspx',
success: AjaxSucceeded,
error: function (msg) {
debugger;
alert(msg);
}
});
When I try to retrieve this in HttpContext.Current.Request, I'm not able to retrieve the requeste xml.