<?xml version="1.0" encoding="utf-8"?>
<a target="_blank" href="http://cxf.apache.org/schemas/jaxrs.xsd">http://cxf.apache.org/schemas/jaxrs.xsd</a>
<a target="_blank" href="http://cxf.apache.org/schemas/jaxws.xsd">http://cxf.apache.org/schemas/jaxws.xsd</a>
<!-- 引入cxf bean定义如下 -->
<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:server id="a"
address="/helloworld"
serviceclass="cn.itcast.server.helloworld">
<jaxws:servicebean>
<bean class="cn.itcast.server.helloworldimpl"></bean>
</jaxws:servicebean>
<jaxws:ininterceptors>
<bean class="org.apache.cxf.interceptor.loggingininterceptor"></bean>
</jaxws:ininterceptors>
<jaxws:outinterceptors>
<bean class="org.apache.cxf.interceptor.loggingoutinterceptor"></bean>
</jaxws:outinterceptors>
</jaxws:server>
</beans>