在 gwt 中使用 rpc 时如何将参数类型设置为 inout?

发布于 2024-08-22 09:27:41 字数 135 浏览 17 评论 0原文

我有一个示例 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪意 2024-08-29 09:27:41

我知道 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)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文