2014-09-30 172 views
1

我试图解开Webservice工作并复制它的调用,但我一直无法做到。Web服务异常Javascript DWR

this网站,如果你输入,例如,似乎已填写数据HY6210一个新的窗口。 用Firebug我能确定它在呼唤 this link, 但无论怎样我来讲做参数,头和饼干,我总是得到两种:

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' }); 

任何的想法是什么,我做错了吗?

回答

0

假设,historyTracking是类名和getStoppageV3方法,然后你通过device1变量在JavaScript中,然后你强制转换这个字符串中的variabal然后你使用device1.toString()

实施例:

historyTracking.getStoppageV3(device1.toString()