springcxf配置

版本 -- cxf-2.5.2

成都创新互联公司专业提供成都主机托管四川主机托管成都服务器托管四川服务器托管,支持按月付款!我们的承诺:贵族品质、平民价格,机房位于中国电信/网通/移动机房,温江服务器托管服务有保障!

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:jaxws="http://cxf.apache.org/jaxws"

xmlns:cxf="http://cxf.apache.org/core"

xsi:schemaLocation="http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd

http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

         

 

 

 

id="userDetailsService"    

implementor="#userDetailsServiceImpl" 

implementorClass="com.webservice.impl.UserDetailsServiceImpl"

address="/userDetailsService" >

 

 

 

地址拦截 白名单  

public class AddressInInterceptor extends AbstractPhaseInterceptor {  

@Resource

com.hotent.platform.service.system.SysAcceptIpService sysAcceptIpService;

    public AddressInInterceptor() {  

        super(Phase.RECEIVE);  

    }  

    

    /**

     *拦截器过滤方法。 

     */

    public void handleMessage(Message message) throws Fault {  

        HttpServletRequest request = (HttpServletRequest) message.get(AbstractHTTPDestination.HTTP_REQUEST);  

        String ipAddr=request.getRemoteAddr();

        if(!accept(ipAddr)) 

throw new Fault(new IllegalAccessException("ip地址" + ipAddr + " 拒绝访问"));        

    }  

}

    

访问地址: http://ip:port/project/service/SystemResourcesService?wsdl


网站标题:springcxf配置
当前网址:http://hxwzsj.com/article/iicsco.html

其他资讯

Copyright © 2025 青羊区翔捷宏鑫字牌设计制作工作室(个体工商户) All Rights Reserved 蜀ICP备2025123194号-14
友情链接: 专业网站建设 成都网站制作 公司网站建设 成都品牌网站设计 成都做网站建设公司 成都企业网站设计 成都网站建设 手机网站制作 重庆网站制作 达州网站设计 四川成都网站建设 专业网站设计 成都网站设计 成都网站制作 网站制作公司 成都响应式网站建设 网站制作 手机网站制作设计 定制网站设计 网站制作报价 阿坝网站设计 成都网站制作