本文介绍了哪个是在JBoss Seam上实现SOAP Web服务的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我需要在Jboss Seam 2.1.0上实现SOAP Web服务。我们的想法是将无状态bean方法导出为Web服务。

I need to implement a SOAP Web Service on Jboss Seam 2.1.0. The idea is to export an Stateless bean method as a Web Service.

但是,我找到了两种方法。

However, I have found two approaches.


  • 首先,是使用Seam自己的Web服务注释。问题是缺乏文件。

  • First one, is to use the Seam's own web services annotations. The problem of this is the lack of documentation.

第二个,就是使用Enunciate。这是更好的记录,但我觉得这不是标准方式。

Second one, is to use Enunciate. It's a lot better documented, but I feel that this is not the standard manner.

那么,哪一个是最好的方法?我错过了什么吗?是否有更多关于JBoss Seam标准SOAP Web服务实现的文档?

So, which one is the best approach? Have I missed something? Is there more documentation around about the JBoss Seam "standard" SOAP web services implementation?

提前致谢,问候,
(对不起,因为我是新的在这里,我无法发布超链接)

Thanks in advance, regards,(Sorry, as I'm new here, I cannot post hyperlinks)

推荐答案

我一直使用JAX-WS,它与EJB3非常兼容。使用 @WebService 注释您的无状态bean,使用 @WebMethod 注释您的方法,使用 @注释您的参数WebParam

I've always used JAX-WS which works very well with EJB3. Annotate your stateless bean with @WebService, your methods with @WebMethod and your parameters with @WebParam.

让它与Seam一起使用的唯一技巧是你需要身份验证。在这种情况下,我在 standard-jaxws-endpoint-config.xml 中定义了 SOAPHandler 。您需要从SOAP标头中提取用户名和密码信息,并使用Seam手动进行身份验证。

The only trick to getting it to work with Seam is if you need authentication. In that case I've defined a SOAPHandler in standard-jaxws-endpoint-config.xml. You'll need to pull the username and password information out of the SOAP header and manually authenticate with Seam.

这篇关于哪个是在JBoss Seam上实现SOAP Web服务的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-08 17:42