Apache CXF 第一篇:HelloWorld

这篇博客介绍了如何在JDK 1.6和Spring 2.0环境下使用Apache CXF 2.6.2版本创建WebServices服务。文章通过传统Servlet方式配置,展示了从服务端接口定义、实现到Servlet发布服务的完整步骤,并提供了web.xml配置示例。读者可以通过访问指定URL查看WSDL。此外,还提及了CXF客户端的调用方法。
摘要由CSDN通过智能技术生成

1、开发环境:JDK 1.6,Spring 2.0,LZ使用Apache CXF 2.6.2 版本。因为使用Spring 2.0故不能使用CXF with Spring的方式配置WebServices服务,故采用传统的Servlet方式。

2、所需CXFJAR,在CXF下载包中均存在

<!-- WebServices Apache CXF -->
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>cxf</artifactId>
            <version>2.6.2</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>neethi</artifactId>
            <version>3.0.2</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>jaxb-api</artifactId>
            <version>2.2.6</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>jaxb-impl</artifactId>
            <version>2.2.5</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>wsdl4j</artifactId>
            <version>1.6.2</version>
            <type>jar</type>
            <properties>
                <war.bundle>true</war.bundle>
            </properties>
        </dependency>
        <dependency>
            <groupId>cxf</groupId>
            <artifactId>wss4j</artifactId>
            <version>1.6.7</version>
            <type>jar</type>
            <properties>
                <war.bundle>true
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值