简体   繁体   English

一个很好的java(tomcat)SOAP库

[英]A good SOAP library for java (tomcat)

ANSVER: After reading and reading and reading a little more documentation. ANSVER:阅读和阅读后阅读更多文档。 I have decided to go with CXF. 我决定和CXF一起去。 Both Axis and CXF are able to run in Tomcat. Axis和CXF都能够在Tomcat中运行。 Axis seems to be faster to implement services in but also restricts the developer more through that simplicity. Axis似乎在实现服务方面更快,但也通过这种简单性限制了开发人员。 For example I have yet to figure out how to put my login information in the header of an AXIS service. 例如,我还没有弄清楚如何将我的登录信息放在AXIS服务的标题中。 So: CXF it is... 那么:CXF就是......


I have to develop a client/server system that uses tomcat(6) as a server and a client created in C#. 我必须开发一个客户端/服务器系统,它使用tomcat(6)作为服务器和用C#创建的客户端。 The communication between then will be via SOAP. 之间的通信将通过SOAP进行。

My question is, what is a good library for the SOAP->Servlet mapping on the tomcat server? 我的问题是,什么是tomcat服务器上SOAP-> Servlet映射的好库? 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. 我正在查看apache轴,但是从他在用户指南http://ws.apache.org/axis/java/user-guide.html中可以读到的关于轴的内容,它在非常高的级别上从soap映射到java类很有控制力。 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. 我需要的是一个soap库,我可以在其中定义一个wsdl并将其映射到稍低级别的servlet中的方法。 Does anyone know of any such library? 有谁知道任何这样的图书馆?

I am used to using SOAP webservices and I have a fairly good idea about this. 我习惯使用SOAP webservices,我对此有一个相当好的想法。 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. 我知道SOAP引擎暴露了类中的某些方法,如wsdd中所述。 But when I read the axis documentation I keep running into java to java examples and serializers and deserializers. 但是当我阅读轴文档时,我一直在运行java到java示例,序列化器和反序列化器。 I am getting the distinct feeling that axis is a java to java framework using soap. 我感觉到轴是一个使用soap的java到java框架的独特感觉。 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. 我需要能够控制WSDL,因为我需要支持maxOccurs,sequence,choice等控件。 Does Axis give me the possibility to control these things or am I looking for another library? Axis让我有可能控制这些东西,还是我在寻找另一个图书馆?

Try Apache CXF : http://cxf.apache.org/ 试试Apache CXF: http//cxf.apache.org/

It is highly configurable :) 它是高度可配置的:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM