Code:
<int-ws:inbound-gateway id="ws-inbound-gateway"
request-channel="request"
reply-channel="reply"
mapped-request-headers="*"/>
<int:header-value-router id="versionRouter"
input-channel="request"
header-name="SOAP-ENV:Version"/>
Here's the log file:
Code:
2012-10-04 15:49:58,493 DEBUG | tomcat-http--4 | o.s.integration.ws.DefaultSoapHeaderMapper | headerName=[SOAP-ENV:Version] WILL be mapped, matched pattern=* |
2012-10-04 15:49:58,496 INFO | tomcat-http--4 | o.s.integration.endpoint.EventDrivenConsumer | Adding {bridge:null} as a subscriber to the 'reply' channel |
2012-10-04 15:49:58,496 INFO | tomcat-http--4 | org.springframework.integration.channel.DirectChannel | Channel 'reply' has 1 subscriber(s). |
2012-10-04 15:49:58,496 INFO | tomcat-http--4 | o.s.integration.endpoint.EventDrivenConsumer | started org.springframework.integration.endpoint.EventDrivenConsumer@3aeacb9c |
2012-10-04 15:49:58,497 DEBUG | tomcat-http--4 | org.springframework.integration.channel.DirectChannel | preSend on channel 'request', message: [Payload=javax.xml.transform.dom.DOMSource@cdd8cfc][Headers={timestamp=1349383798497, id=85fe142b-4220-4577-a182-b09500da7d10, errorChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@2552fafd, replyChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@2552fafd, SOAP-ENV:Version=org.springframework.ws.soap.saaj.SaajSoapHeaderElement@6adc0b2f}] |
2012-10-04 15:49:58,497 DEBUG | tomcat-http--4 | o.springframework.integration.router.HeaderValueRouter | (inner bean)#1 received message: [Payload=javax.xml.transform.dom.DOMSource@cdd8cfc][Headers={timestamp=1349383798497, id=85fe142b-4220-4577-a182-b09500da7d10, errorChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@2552fafd, replyChannel=org.springframework.integration.core.MessagingTemplate$TemporaryReplyChannel@2552fafd, SOAP-ENV:Version=org.springframework.ws.soap.saaj.SaajSoapHeaderElement@6adc0b2f}] |
2012-10-04 15:49:58,497 DEBUG | tomcat-http--4 | o.springframework.integration.router.HeaderValueRouter | Unable to attempt conversion of Message payload types. Component 'versionRouter' has no explicit ConversionService reference, and there is no 'integrationConversionService' bean within the context. |
2012-10-04 15:49:58,503 WARN | tomcat-http--4 | o.s.integration.ws.SimpleWebServiceInboundGateway | failure occurred in gateway sendAndReceive |
org.springframework.integration.MessagingException: unsupported return type for router [class org.springframework.ws.soap.saaj.SaajSoapHeaderElement]