了解CXF,Spring,JAXWS等之间的体系结构或关系 [英] Learn about the architecture or relationship between CXF, Spring, JAXWS, etc

查看:157
本文介绍了了解CXF,Spring,JAXWS等之间的体系结构或关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被带到一个基于CXF的项目中,该基础HowTo教程很容易理解和实施,但是一旦系统出现问题或错误,就会抛出各种异常,而我却不了解任何



我知道CXF建立在Spring之上。
但是我没有使用Spring的经验,也不知道它是如何工作的。



我还在cxf.xml中看到了对JAXWS的引用,但是我不知道它与Spring或CXF有什么关系。



我可以构建一个运行良好(简单)的基于CXF的Web服务。首先签订合同,在pom.xml中使用wsdl2java(复制示例)。理想情况下,我想提供一个教程,向我介绍Web服务如何从仅Java到J2EE,再到JAXWS演变到春天,到CXF。



但是我找不到任何东西。



我确实找到了 Apache CXF官方文档,但是它假定了许多先验知识,而不仅仅是了解Java语言。



关于建立Web服务时如何真正了解我在做什么的任何建议?



推荐书?在线教程?



谢谢。

解决方案

是的,有点学习曲线,但非常值得。就书籍而言,您可以尝试以下方法。


  1. Apache CXF Web服务开发

  2. Spring实战

请注意,J2EE和Spring并非相互联系的进化论Spring更是对旧版J2EE规范的反应。 CXF是一个Web服务工具箱/ API,也可以在J2EE之外使用。



我建议您也加入CXF项目的用户列表,并在那里提问。另外,为什么不在此处发布一些导致异常的代码,以便我们为您提供更多详细信息?


I was thrown into a CXF-based project in which the basic HowTo tutorials are easy to follow and implement but the moment there is a problem or a bug in the system, all kinds of exceptions are thrown without me understanding any of the relationship between the various components.

I know that CXF builds on top of Spring. But I have no experience with Spring and I don't know how it works.

I have also seen references to JAXWS in the cxf.xml but I don't know how it is related to either Spring or CXF.

I can build a perfectly working (simple) CXF-based web service. Contract first, using wsdl2java in a pom.xml (copycatting a sample).

But the moment I face a problem, I am stumped, relying on some tips and clues gleaned from the web.

Ideally, I would like to have a tutorial that walks me through the history of how web services evolved from Java only, to J2EE, to JAXWS, to Spring, to CXF.

But I couldn't find any.

I did find the official Apache CXF documentation but it assumes a lot of prior knowledge that is more than just knowing the Java language.

Any recommendations on how to get to a point of truly understanding what I am doing when I build a web service?

A recommended book? Online tutorial?

Thanks.

解决方案

Yip it is a bit of a learning curve but well worth it. As far as books are concerned you can try the following.

  1. Apache CXF Web Service Development
  2. Spring In Action

Please be aware that J2EE and Spring are not evolutionary linked to each other Spring was more a reaction to the heavy weight J2EE specification of old. CXF is a web services toolkit/API that can be used outside of J2EE as well.

I would suggest you also join the user lists of the CXF projects and ask questions there. Also why not post some of the code causing exceptions here so we can help you with more detail?

这篇关于了解CXF,Spring,JAXWS等之间的体系结构或关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆