首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Webservice异常Javascript DWR

Webservice异常Javascript DWR
EN

Stack Overflow用户
提问于 2014-09-30 10:34:18
回答 1查看 2.7K关注 0票数 2

我试图拆解一个Webservice工作,并复制它的调用,但我一直无法做到。

例如,在this网站中,如果您输入HY6210,就会出现一个新窗口,其中已经填写了数据。使用Firebug我能够确定它正在调用this link,但无论我在参数、标头和cookies方面做什么,我总是得到以下两种情况之一:

代码语言:javascript
运行
复制
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' });

代码语言:javascript
运行
复制
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' });

知道我哪里做错了吗?

EN

回答 1

Stack Overflow用户

发布于 2015-08-01 15:26:41

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

示例:

代码语言:javascript
运行
复制
historyTracking.getStoppageV3(device1.toString()
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26111865

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档