Hello,
I am coding a POC for the Spring Integration project.
I am calling a WS with XML payload (String and Document tried) on my server which is implementing a simpleGateway
Then I am trying to use the simpleRouter to route the messages into channelsCode:<ws:inbound-gateway id="simpleGateway" request-channel="inputChannel"/>
this is producing the following error :Code:<si-xml:xpath-router id="aRouter" input-channel="inputChannel" multi-channel="false"> <si-xml:xpath-expression expression="/aRequest/someVal/anotherVal"/> </si-xml:xpath-router>
I believe the DOMSource should be used and the getNode() method called to get the Node object. Is this a bug? or am I missing a step.Code:DEBUG: org.springframework.integration.xml.router.XPathSingleChannelRouter - org.springframework.integration.xml.router.XPathSingleChannelRouter@e2b9e5 received message: [Payload=javax.xml.transform.dom.DOMSource@1386751][Headers={springintegration_id=8c6c39e8-3ff5-4759-9499-41fee0a9b67d, springintegration_timestamp=1254832382109, springintegration_replyChannel=org.springframework.integration.channel.MessageChannelTemplate$TemporaryReplyChannel@72edc, springintegration_errorChannel=org.springframework.integration.channel.MessageChannelTemplate$TemporaryReplyChannel@72edc}] DEBUG: org.springframework.ws.soap.server.SoapMessageDispatcher - Endpoint invocation resulted in exception - responding with Fault org.springframework.integration.core.MessagingException: unsupported payload type [javax.xml.transform.dom.DOMSource] at org.springframework.integration.xml.DefaultXmlPayloadConverter.convertToDocument(DefaultXmlPayloadConverter.java:66) at org.springframework.integration.xml.DefaultXmlPayloadConverter.convertToNode(DefaultXmlPayloadConverter.java:73) at org.springframework.integration.xml.router.XPathSingleChannelRouter.getChannelIndicatorList(XPathSingleChannelRouter.java:81) at org.springframework.integration.router.AbstractChannelNameResolvingMessageRouter.determineTargetChannels(AbstractChannelNameResolvingMessageRouter.java:110) at org.springframework.integration.router.AbstractMessageRouter.handleMessageInternal(AbstractMessageRouter.java:72) at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:59) at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:103) at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:90) at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:43)
thanks
Rob


Reply With Quote