Skip to content

Commit b691588

Browse files
committed
Upgrade samples & archetype to new namespace
1 parent 46e0c4c commit b691588

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:sws="http://www.springframework.org/schema/web-services"
5+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
6+
http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd">
7+
8+
<sws:annotation-driven/>
49

510

611
</beans>

samples/tutorial/src/main/webapp/WEB-INF/spring-ws-servlet.xml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,18 @@
1717

1818
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1919
xmlns:context="http://www.springframework.org/schema/context"
20+
xmlns:sws="http://www.springframework.org/schema/web-services"
2021
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
22+
http://www.springframework.org/schema/web-services http://www.springframework.org/schema/web-services/web-services-2.0.xsd
2123
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
2224

2325
<context:component-scan base-package="com.mycompany.hr"/>
2426

25-
<bean id="holiday" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
26-
<property name="schema" ref="schema"/>
27-
<property name="portTypeName" value="HumanResource"/>
28-
<!-- we use a relative uri that will be transformed by spring-ws dep-->
29-
<property name="locationUri" value="/holidayService/"/>
30-
<property name="targetNamespace" value="http://mycompany.com/hr/definitions"/>
31-
</bean>
27+
<sws:annotation-driven/>
3228

33-
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
34-
<property name="xsd" value="/WEB-INF/hr.xsd"/>
35-
</bean>
29+
<sws:dynamic-wsdl id="holiday" portTypeName="HumanResource" locationUri="/holidayService/"
30+
targetNamespace="http://mycompany.com/hr/definitions">
31+
<sws:xsd location="/WEB-INF/hr.xsd"/>
32+
</sws:dynamic-wsdl>
3633

3734
</beans>

0 commit comments

Comments
 (0)