发布服务,如何添加Handler?

View: New views
2 Messages — Rating Filter:   Alert me  

发布服务,如何添加Handler?

by 忆风 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


认证bean,如下配置:

<bean id="authHandler"
class="com.m800.i400.common.interceptor.SampleSoapAuthHandler">
        <property name="spRevId" value="username"></property>
        <property name="spRevpassword" value="pawd"></property>
</bean>
主要校验SoapAuthHandler的用户名和密码操作,是否有权访问。

我发布的服务配置:
<bean id="TollFreeNumberWSImpl"
class="com.m800.i400.pboss.nummanage.ws.impl.TollFreeNumberWSImpl"/>
 <jaxws:endpoint id="TollFreeNumberService"
implementor="#TollFreeNumberWSImpl" address="/
TollFreeNumberService">
 </jaxws:endpoint>

请问,我如何把authHandler添加到服务中去?
是添加<jaxws:handlers吗?但是如何配置,求解

多谢
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“cxf-zh”论坛。
 要在此论坛发帖,请发电子邮件到 cxf-zh@...
 要退订此论坛,请发邮件至 cxf-zh-unsubscribe@...
 更多选项,请通过 http://groups.google.com/group/cxf-zh?hl=zh-CN 访问该论坛
----
Apache CXF 首页 http://cwiki.apache.org/confluence/display/CXF/Index
-~----------~----~----~----~------~----~------~--~---


Re: 发布服务,如何添加Handler?

by willem.jiang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


<jaxws:endpoint id="TollFreeNumberService"
implementor="#TollFreeNumberWSImpl" address="/
TollFreeNumberService">
 <jaxws:handlers>
      <bean ref="authHandler"/>
 </jaxws:handlers>
 </jaxws:endpoint>

姜宁 (Willem)
------------------
Apache CXF, Apache Camel committer
Open SOA http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang

On 10月26日, 上午11时16分, 忆风 <zhd...@...> wrote:

> 认证bean,如下配置:
>
> <bean id="authHandler"
> class="com.m800.i400.common.interceptor.SampleSoapAuthHandler">
>         <property name="spRevId" value="username"></property>
>         <property name="spRevpassword" value="pawd"></property>
> </bean>
> 主要校验SoapAuthHandler的用户名和密码操作,是否有权访问。
>
> 我发布的服务配置:
> <bean id="TollFreeNumberWSImpl"
> class="com.m800.i400.pboss.nummanage.ws.impl.TollFreeNumberWSImpl"/>
>  <jaxws:endpoint id="TollFreeNumberService"
> implementor="#TollFreeNumberWSImpl" address="/
> TollFreeNumberService">
>  </jaxws:endpoint>
>
> 请问,我如何把authHandler添加到服务中去?
> 是添加<jaxws:handlers吗?但是如何配置,求解
>
> 多谢
--~--~---------~--~----~------------~-------~--~----~
您收到此信息是由于您订阅了 Google 论坛“cxf-zh”论坛。
 要在此论坛发帖,请发电子邮件到 cxf-zh@...
 要退订此论坛,请发邮件至 cxf-zh-unsubscribe@...
 更多选项,请通过 http://groups.google.com/group/cxf-zh?hl=zh-CN 访问该论坛
----
Apache CXF 首页 http://cwiki.apache.org/confluence/display/CXF/Index
-~----------~----~----~----~------~----~------~--~---