File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 308
308
...
309
309
310
310
<bean class="org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter"/>
311
+
311
312
</beans>]]> </programlisting >
312
313
Note that by explicitly adding the <classname >WebServiceMessageReceiverHandlerAdapter</classname >,
313
314
the dispatcher servlet does not load the default adapters, and is unable to handle standard Spring-MVC
326
327
</para >
327
328
</footnote >
328
329
</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 >< beans>
335
+
336
+ < bean class=" org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter" />
337
+
338
+ <emphasis role =" bold" >< bean class=" org.springframework.ws.transport.http.WsdlDefinitionHandlerAdapter" /> </emphasis >
339
+
340
+ < bean class=" org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
341
+ < property name=" mappings">
342
+ < props>
343
+ <emphasis role =" bold" >< prop key=" *.wsdl"> myServiceDefinition< /prop> </emphasis >
344
+ < /props>
345
+ < /property>
346
+ < property name=" defaultHandler" ref=" messageDispatcher" />
347
+ < /bean>
348
+
349
+ < bean id=" messageDispatcher" class=" org.springframework.ws.soap.server.SoapMessageDispatcher" />
350
+
351
+ <emphasis role =" bold" >< bean id=" myServiceDefinition" class=" org.springframework.ws.wsdl.wsdl11.SimpleWsdl11Definition">
352
+ < prop name=" wsdl" value=" /WEB-INF/myServiceDefintion.wsdl" />
353
+ < /bean> </emphasis >
354
+
355
+ ...
356
+
357
+ < /beans> </programlisting >
358
+ </para >
329
359
</section >
330
360
<section >
331
361
<title >JMS transport</title >
You can’t perform that action at this time.
0 commit comments