<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5">
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:/applicationContext.xml,
classpath*:/applicationContext-ws.xml
</param-value>
</context-param>
<!-- this is for Spring -->
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- these are for JAX-WS -->
<servlet>
<servlet-name><span style="color:#ff0000;">jaxws-servlet</span></servlet-name>
<servlet-class>
com.sun.xml.ws.transport.http.servlet.WSSpringServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name><span style="color:#ff0000;">jaxws-servlet</span></servlet-name>
<url-pattern><span style="color:#000099;">/GeneralIPSWebService</span></url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>30</session-timeout>
</session-config>
</web-app>
<?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:ws="http://jax-ws.dev.java.net/spring/core"
xmlns:wss="http://jax-ws.dev.java.net/spring/servlet"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://jax-ws.dev.java.net/spring/core
http://jax-ws.dev.java.net/spring/core.xsd
http://jax-ws.dev.java.net/spring/servlet
http://jax-ws.dev.java.net/spring/servlet.xsd
"
default-lazy-init="true">
<description>Spring WS配置</description>
<wss:binding url="<span style="color:#6600cc;background-color: rgb(255, 255, 255);">/GeneralIPSWebService</span>"> <!-- 这里的URL要与web.xml中url-pattern所指的URL一致 -->
<wss:service> <!-- wss:binding定义web service所要绑定的URL,ws:service定义web服务-->
<ws:service bean="#dataSyncWs"/>
</wss:service>
</wss:binding>
<!-- Web service methods -->
<bean id="dataSyncWs" class="com.blisscloud.bjsjt.ws.DataSyncWebservice"> <!-- this bean implements web service methods -->
<property name="customService" ref="customService"/>
<property name="customFeedbackService" ref="customFeedbackService"/>
<property name="doctorVisitService" ref="doctorVisitService"/>
<property name="baseDataProcessService" ref="baseDataProcessService"/>
</bean>
</beans>
<pre name="code" class="html">