我的任务是创建一个 Java Web 服务供 .NET 2.0 客户端使用。
您对实施有何建议?
该解决方案不需要非常重量级(我相信不需要完整的 Java EE 容器),但您认为对此的最佳解决方案是什么?我考虑过将 Glassfish v2 与 JAX-WS 注释 (@WebService) 和 JAXB XML 绑定(例如 @XmlElement)一起使用,我假设 .NET 客户端能够使用它们?
-
有人尝试过这种情况吗?
-
Glassfish 会不会太过分了,因为我只是使用 Web 服务作为 Windows 上的 .NET 与 Linux 机器通信的机制,底层应用程序非常小。
不过
任何建议都非常受欢迎:)
谢谢,
James
P.S.其他注意事项 - 您会使用 Axis/CXF 而不是 Glassfish 吗?您会使用 Tomcat 等 servlet 容器吗? ETC。
I'm tasked with creating a Java Web Service for a .NET 2.0 client to consume.
What would your suggestions for the implementation be?
The solution doesn't need to be very heavyweight (don't need a full Java EE container I believe) but what do you think is the best solution for this? I have thought about using Glassfish v2 with JAX-WS annotations (@WebService), and JAXB XML Bindings(e.g. @XmlElement), which I assume the .NET client would be able to consume?
-
Has anyone tried this scenario?
-
Would Glassfish be overkill though, since I'm merely using the Web Service as a mechanism for .NET on Windows to communicate to the Linux box, the underlying application is extremely small.
Any suggestions are more than welcome :)
Thanks,
James
P.S. Other notes - would you use Axis/CXF instead of Glassfish? Would you use a servlet container such as Tomcat? etc.
发布评论
评论(1)
我用过Axis2,它可以工作。
我在用 Java 制作数据公开 API(在我的例子中是 Web 服务)时遇到了同样的问题。
我使用 Axis2 和 Spring(用于访问数据库)创建了 Web 服务,通过 Axis2 创建的 WSDL 可以通过 ASP.NET 应用程序的“添加 Web 服务”对话框轻松使用,并且可以轻松创建相应的代理类。
I have used Axis2 and it works.
I had the same problem of making Data Exposing API (Web Service in my case) in Java.
I made the web service using Axis2 and Spring (to access database) and the WSDL created via Axis2 was easily consumed via ASP.NET Application via its Add Web Service Dialog Box and the corresponding Proxy Classes were created easily.