一、webservice的配制文件
applicationContext-webservice.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
?? ?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
?? ?xmlns:cxf="http://cxf.apache.org/core"
?? ?xmlns:context="http://www.springframework.org/schema/context"
?? ?xsi:schemaLocation="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
?? ??? ??? ??? ??? ??? ?http://cxf.apache.org/core
?? ????????? ??? ??? ??? ?http://cxf.apache.org/schemas/core.xsd">
?? ?<import resource="classpath:META-INF/cxf/cxf.xml" />
?? ?<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
?? ?<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
??? <jaxws:endpoint id="helloWorldService" address="/hello">
??????? <jaxws:implementor>
??????????? <ref bean="helloWorld" />
??????? </jaxws:implementor>
??????? <jaxws:inInterceptors>
??????????? <bean class="org.apache.cxf.interceptor.LoggingInInterceptor" />
??????? </jaxws:inInterceptors>
??????? <jaxws:outInterceptors>
??????????? <bean class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
??????? </jaxws:outInterceptors>
??? </jaxws:endpoint>
</beans>
二.接口的写法