一个好的java SOAP库(tomcat)
答: 读了又读又读了更多的文档之后。我决定选择CXF。 Axis 和 CXF 都可以在 Tomcat 中运行。 Axis 似乎可以更快地实现服务,但这种简单性也更多地限制了开发人员。例如,我还没有弄清楚如何将登录信息放入 AXIS 服务的标头中。所以: CXF 是...
我必须开发一个客户端/服务器系统,它使用 tomcat(6) 作为服务器,并使用 C# 创建客户端。然后之间的通信将通过 SOAP 进行。
我的问题是,在 tomcat 服务器上进行 SOAP->Servlet 映射的好库是什么?我正在查看 apache axis,但是从我可以在其用户指南中读到的有关 axis http ://ws.apache.org/axis/java/user-guide.html 它在非常高的级别上从soap映射到java类,无需太多控制。我需要的是一个soap 库,我可以在其中定义wsdl 并将其映射到稍低级别的servlet 中的方法。有谁知道有这样的图书馆吗?
我习惯使用 SOAP Web 服务,对此我有一个相当好的想法。我没有任何实施服务器的实际经验。据我所知,SOAP 引擎公开了类中的某些方法,如 wsdd.txt 中所述。但是当我阅读 axis 文档时,我不断遇到 java 到 java 示例以及序列化器和反序列化器。我明显感觉到axis是一个使用soap的java到java框架。我错了吗? 轴是否能满足我的需要?我需要能够控制 WSDL,因为我需要支持 maxOccurs、序列、选择等控件。 Axis 是否让我能够控制这些事情,或者我是否正在寻找另一个库?
ANSVER:
After reading and reading and reading a little more documentation. I have decided to go with CXF. Both Axis and CXF are able to run in Tomcat. Axis seems to be faster to implement services in but also restricts the developer more through that simplicity. For example I have yet to figure out how to put my login information in the header of an AXIS service. So: CXF it is...
I have to develop a client/server system that uses tomcat(6) as a server and a client created in C#. The communication between then will be via SOAP.
My question is, what is a good library for the SOAP->Servlet mapping on the tomcat server? I was looking at apache axis but from what I can read about axis in their user guide http://ws.apache.org/axis/java/user-guide.html it maps from soap to java classes on a very high level without much control. What I need is a soap library where I can define a wsdl and map it to a method in a servlet on a slightly lower level. Does anyone know of any such library?
I am used to using SOAP webservices and I have a fairly good idea about this. I dont have any practical experience implementing a server. I understand that the SOAP engine exposes certain methods in a class, described in the wsdd. But when I read the axis documentation I keep running into java to java examples and serializers and deserializers. I am getting the distinct feeling that axis is a java to java framework using soap. Am I mistaken?
Does axis do what I need it to do? I need to be able to control the WSDL, in the sence that I need support for controls like maxOccurs, sequence, choice and so forth. Does Axis give me the possibility to control these things or am I looking for another library?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试 Apache CXF:http://cxf.apache.org/
它是高度可配置的:)
Try Apache CXF : http://cxf.apache.org/
It is highly configurable :)