XMLHttpRequest对象调用.asmx的方法如何设置参数
客户端通过XMLHttpRequest调用服务器端的MyService.asmx服务的int Add(int a, int b)方法。
如,我可以如下这样调用,但我不知道如何设置参数??? 请高手赐教!
_xmlHttp.open("POST", "ServiceTest.asmx/Add", true);
_xmlHttp.onreadystatechange = _processResponse;
_xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;");
_xmlHttp.send("<param><a>3</a><b>5</b></param");