Skip to content

Commit 2884472

Browse files
committed
SWS-527 - Document use of WsdlDefinition when not using MessageDispatcherServlet
1 parent 242858b commit 2884472

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/docbkx/server.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@
308308
...
309309
310310
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/>
311+
311312
</beans>]]></programlisting>
312313
Note that by explicitly adding the <classname>WebServiceMessageReceiverHandlerAdapter</classname>,
313314
the dispatcher servlet does not load the default adapters, and is unable to handle standard Spring-MVC
@@ -326,6 +327,35 @@
326327
</para>
327328
</footnote>
328329
</para>
330+
<para>
331+
In a similar fashion, you can wire up a <classname>WsdlDefinitionHandlerAdapter</classname> to make sure
332+
the <classname>DispatcherServlet</classname> can handle implementations of the
333+
<interfacename>WsdlDefinition</interfacename> interface:
334+
<programlisting>&lt;beans&gt;
335+
336+
&lt;bean class=&quot;org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter&quot;/&gt;
337+
338+
<emphasis role="bold">&lt;bean class=&quot;org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter&quot;/&gt;</emphasis>
339+
340+
&lt;bean class=&quot;org.springframework.web.servlet.handler.SimpleUrlHandlerMapping&quot;&gt;
341+
&lt;property name=&quot;mappings&quot;&gt;
342+
&lt;props&gt;
343+
<emphasis role="bold">&lt;prop key=&quot;*.wsdl&quot;&gt;myServiceDefinition&lt;/prop&gt;</emphasis>
344+
&lt;/props&gt;
345+
&lt;/property&gt;
346+
&lt;property name=&quot;defaultHandler&quot; ref=&quot;messageDispatcher&quot;/&gt;
347+
&lt;/bean&gt;
348+
349+
&lt;bean id=&quot;messageDispatcher&quot; class=&quot;org.springframework.ws.soap.server.SoapMessageDispatcher&quot;/&gt;
350+
351+
<emphasis role="bold">&lt;bean id=&quot;myServiceDefinition&quot; class=&quot;org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition&quot;&gt;
352+
&lt;prop name=&quot;wsdl&quot; value=&quot;/WEB-INF/myServiceDefintion.wsdl&quot;/&gt;
353+
&lt;/bean&gt;</emphasis>
354+
355+
...
356+
357+
&lt;/beans&gt;</programlisting>
358+
</para>
329359
</section>
330360
<section>
331361
<title>JMS transport</title>

0 commit comments

Comments
 (0)