在 gwt 中使用 rpc 时如何将参数类型设置为 inout?
我有一个示例 gwt2 rpc 服务 &我需要将它的一些参数设置为 out 或 inout (如 Microsoft WCF 中的 out 或 ref 参数类型),但我在 gwt 文档或相关论坛中找不到任何有关它的信息:(
有人可以帮我吗?
I've a sample gwt2 rpc service & i need to set some of it's parameters as out or inout (like out or ref parameter types in microsoft wcf), but i could not find anything about it in gwt documents or related forums :(
Can anybody help me please ?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我知道 gwt rpc 服务不能包含任何 out 或 inout 参数(即使您使用 java 数组作为方法参数,数据绑定也只是一种方式)。
为了从您的方法返回多个值,您可以简单地从您的服务方法返回一些复杂的可序列化数据结构(Hashmap 或 ListArray 是不错的选择)
I understood that gwt rpc services can't contain any out or inout parameter(even if you use java arrays as method parameters, the data binding would be only one way).
In order to returning more than one value from your methods, you can simply return some complex serializable data structure from your service method(Hashmap or ListArray are good choices)