2014-09-30 89 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()