Skip to content

Commit 33b5dae

Browse files
committed
Using DefaultWsdl11Definition
1 parent 4b6a0f5 commit 33b5dae

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

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

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,23 +46,21 @@
4646
<property name="echoService" ref="echoService"/>
4747
</bean>
4848

49-
<bean id="echo" class="org.springframework.ws.wsdl.wsdl11.DynamicWsdl11Definition">
49+
<bean id="echo" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
5050
<description>
51-
This bean definition represents a WSDL definition that is generated at runtime, based on the builder defined
52-
below. It can be retrieved by going to /echo/echo.wsdl (i.e. the bean name corresponds to the filename).
51+
This bean definition represents a WSDL definition that is generated at runtime. It can be retrieved by
52+
going to /echo/echo.wsdl (i.e. the bean name corresponds to the filename).
5353
</description>
54-
<property name="builder">
55-
<description>
56-
The builder creates a WSDL from the 'echo.xsd' schema. It detects all elements that ends with 'Request',
57-
finds corresponding 'Response' messages, and creates an operation based on that. All operations are put
58-
in a portType with name 'Echo', and binding and service are created.
59-
</description>
60-
<bean class="org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder">
61-
<property name="schema" value="/WEB-INF/echo.xsd"/>
62-
<property name="portTypeName" value="Echo"/>
63-
<property name="locationUri" value="http://localhost:8080/echo/services"/>
64-
</bean>
65-
</property>
54+
<property name="schema" ref="schema"/>
55+
<property name="portTypeName" value="Echo"/>
56+
<property name="locationUri" value="http://localhost:8080/echo/services"/>
57+
</bean>
58+
59+
<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
60+
<description>
61+
This bean definition contains the XSD schema.
62+
</description>
63+
<property name="xsd" value="/WEB-INF/echo.xsd"/>
6664
</bean>
6765

6866
<bean id="echoService" class="org.springframework.ws.samples.echo.service.impl.EchoServiceImpl">

0 commit comments

Comments
 (0)