forked from v5tech/maven-framework-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spring-ws-servlet.xml
38 lines (29 loc) · 1.83 KB
/
spring-ws-servlet.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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:context="http://www.springframework.org/schema/context"
xmlns:sws="http://www.springframework.org/schema/web-services"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/web-services
http://www.springframework.org/schema/web-services/web-services-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="com.fengjing.framework.webservice.springws"/>
<sws:annotation-driven />
<sws:dynamic-wsdl id="echo" portTypeName="Echo" locationUri="http://localhost:8080/maven-framework/sws/services">
<sws:xsd location="classpath:META-INF/schemas/echo.xsd"/>
</sws:dynamic-wsdl>
<sws:dynamic-wsdl id="studentDetails" portTypeName="StudentDetails" locationUri="http://localhost:8080/maven-framework/sws/services"
requestSuffix="Request"
responseSuffix="Response"
targetNamespace="http://www.example.org/student">
<sws:xsd location="classpath:META-INF/schemas/student.xsd" />
</sws:dynamic-wsdl>
<bean class="org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter">
<constructor-arg ref="marshaller" />
</bean>
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping"></bean>
<bean id="marshaller" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="contextPath" value="com.fengjing.framework.webservice.springws.domain" />
</bean>
</beans>