Web服务异常Javascript DWR

Webservice Exception Javascript DWR

本文关键字:DWR Javascript 异常 服务 Web      更新时间:2023-09-26

我试图解开一个Web服务工作并复制它的调用,但我一直无法完成。

在该网站中,例如,如果输入HY6210,则会出现一个新窗口,其中包含已填充的数据。使用Firebug,我能够确定它在调用该链接,但无论我在参数、头和cookie方面做什么,我总是得到其中一个:

throw 'allowScriptTagRemoting is false.';
//#DWR-REPLY
if (window.dwr) dwr.engine._remoteHandleBatchException({ name:'java.lang.SecurityException',         message:'Call IDs may only contain Java Identifiers' });
else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({  name:'java.lang.SecurityException', message:'Call IDs may only contain Java Identifiers' });

throw 'allowScriptTagRemoting is false.';
//#DWR-REPLY
if (window.dwr) dwr.engine._remoteHandleBatchException({name:'org.directwebremoting.extend.ServerException',    message:'The specified call count is not a number'    });
else if (window.parent.dwr) window.parent.dwr.engine._remoteHandleBatchException({ name:'org.directwebremoting.extend.ServerException', message:'The specified call count is not a number' });

你知道我做错了什么吗?

假设historyTracking是类名和getStoppageV3方法,然后在JavaScript中传递device1变量,然后在字符串中强制转换该变量,然后使用device1.toString()

示例:

historyTracking.getStoppageV3(device1.toString()