[jQuery] How to post a XmlDocument to ASP.NET WebService (*.asmx)

[jQuery] How to post a XmlDocument to ASP.NET WebService (*.asmx)


I tried to use it in following way.
asmx:
[WebMethod]
public string XmlTest([XmlAnyElement] XmlElement test)
{
return "";
}
js:
var xmldata="<Book>a</Book>
var par = { "test": xmldata};
$.ajax({
type: 'post',
url: "WebService/DatabaseWS.asmx/XmlTest",
processData: false,
data: data,
success: function() { alert('yes'); },
},
But it seems wrong, and didn't call the XmlTest method, Anyone can
help me?