将域对象映射到 Java 中的 Web 服务代理对象

发布于 2024-08-16 05:32:37 字数 346 浏览 1 评论 0原文

我正在尝试找到一种将域对象映射到由各种 Java Web 服务堆栈生成的 Web 服务代理对象的方法。 Web 服务 (.NET) 和 Java 代码都使用特定规范的实现。该规范旨在提供域类的非常详细的描述,这些描述应该在不同的平台上实现。但是,当通过 Web 服务公开 .NET 实现时,Java Web 服务堆栈最终会生成基于 WSDL 的域类,需要根据规范将其映射到域类的 Java 实现。 例如,有两个 ENTRY 类,一个来自 Java 实现,另一个是 Web 服务调用的参数,并且 Web 服务的使用者被迫使用 Java 域类(ENTRY )。

有什么推荐的做法吗?

致以最诚挚的问候,祝你新年快乐!

塞雷夫·阿里坎

I am trying to find a way for mapping domain objects to web service proxy objects, generated by various Java web service stacks.
Both the web service (.NET) and the Java code use implementations of a particular specification. The specification is meant to provide very detailed description of domain classes, which should be implemented in different platforms. However, when a .NET implementation is exposed via a web service, the Java web service stacks end up generating WSDL based domain classes which need to be mapped to Java implementation of the domain classses, based on specification.
For example there are two ENTRY classes, one from the Java implementation, the other being a parameter to a web service call, and the consumers of the web service are forced to deal with creation of a WSDL ENTRY, using a Java domain class (ENTRY).

Any recommended practices?

Best Regards, and have a great new year!

Seref Arikan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

べ映画 2024-08-23 05:32:37

您可以使用 Java 映射框架。

  1. Nomin:http://nomin.sourceforge.net。它使用用 Groovy 编写的声明性映射规则。

  2. 推土机:http://dozer.sourceforge.net。其映射规则以 XML 文件形式提供。

You can use Java mapping frameworks.

  1. Nomin: http://nomin.sourceforge.net. It uses declarative mapping rules written in Groovy.

  2. Dozer: http://dozer.sourceforge.net. Its mapping rules are supplied as XML files.

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