Silverlight 3 与 Weborb for Java
由于某种原因,我无法调用部署在 Tomcat/Weborb 应用程序下的 java 方法。当我运行 weborb 控制台并从那里调用该方法时,没有问题。然而,当我尝试从 Silverlight 3 客户端调用时,它根本没有响应。有一种可能是服务网关不正确。但我已经检查了服务器路径以确保它是正确的。我还尝试了不同的方法来调用服务器调用,例如 weborb 文档中提到的代理和类接口。我已经被这个问题困扰了两天,无法进一步进展。在解决这个问题时,有什么常见的错误吗?任何帮助将不胜感激。
干杯, 科阿·阮
For some reason, i can not invoke java method deployed under Tomcat/Weborb application. When i run weborb console and invoke the method from there, there is no problem. However when i tried to call from Silverlight 3 client, it does not response at all. There is one possibility which is incorrect service gateway. But i have checked the server path to make sure it is correct. I also tried different approaches to invoke server call such as proxy and class interface mentioned inside weborb documentation. I'm stuck with this problem for two days already and can not progress any further. Is there any common mistake when it comes to this problem? Any help would appreciate.
Cheers,
Khoa Nguyen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了解决方案。这是因为网关映射不正确。例如,在weborb下部署时,客户端使用localhost:8080/weborb.wo。但是,当您部署 underworb 时,网关映射现在更改为类似 localhost:8080/weborb/console/weborb.wo 之类的内容。您可以通过运行 weborb 控制台来查看请求如何映射到,并在调用 java 方法时查看服务器状态。
希望这有帮助。
干杯,
科阿·阮
I found the solution. This is because the gateway mapping is incorrect. For instance, When deploy under weborb, the client use localhost:8080/weborb.wo. However when you deploy underworb, the gateway mapping is now change to something like localhost:8080/weborb/console/weborb.wo something like that. You can see how your request mapped to by run the weborb console and look at the server status as you invoke your java methods.
Hope this help.
Cheers,
Khoa Nguyen
有一个新的 Java 4.1 版本的 WebORB 可以修复此映射问题。此外,新的代码生成器还为远程创建了一个完整的客户端类库,其中包含复杂类型、枚举、可绑定模型和代理类Java 服务。该版本可在此处获取:http://www.themidnightcoders.com/products.html
There is a new WebORB for Java 4.1 release available that fixes this mapping issue. In addition, the new code generator creates a complete client class library with complex types, enums, bindable model and proxy class for the remote Java service. The release is available here:http://www.themidnightcoders.com/products.html