It comes back as a DOMSource, see trace below: 12:43:34,124 | INFO | auRoute-thread-1 | Tracer | rg.apache.camel.processor.Logger 88 | ff1373da-a100-4ab8-9251-f15850de39ab >>> nmr://{http://tempuri.org/}Service:ServiceSoap -->, Pattern:InOut, BodyType:javax.xml.transform.dom.DOMSource, Body:<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetDataResponse xmlns="http://tempuri.org/"><GetDataResult>false</GetDataResult></GetDataResponse></soap:Body></soap:Envelope>
Here is my route: <route> <from uri="jms:queue:collegeRequestQueue?replyTo=collegeResponseQueue&jmsMessageType=Text" /> <convertBodyTo type="javax.xml.transform.stream.StreamSource" /> <bean ref="collegeRecipientList" method="route" /> </route> this routes to app describe below: <route> <from uri="nmr:nauRoute"/> <to uri="xslt:requestTo.xsl"/> <convertBodyTo type="javax.xml.transform.stream.StreamSource" /> <to uri="nmr:{http://tempuri.org/}Service:ServiceSoap" /> <convertBodyTo type="javax.xml.transform.stream.StreamSource" /> <to uri="xslt:responseFrom.xsl"/> <to uri="log:TransformedNAUResponse"/> </route> Claus Ibsen-2 wrote: > > On Thu, Dec 10, 2009 at 3:27 PM, lekkie <lekkie.ay...@gmail.com> wrote: >> >> Hi guys, >> >> The flow below describe the flow of a system I am trying to develop: >> >> jms:queue (camel) -> router (camel) -> xslt translator (camel) -> >> cxfbc:provider (jbi component) >> >> The jms:queue is expecting a response (it has a "replyto" parameter) >> from >> the router who is expecting response from the xslt translator who is >> expecting response from cxfbc:provider. >> >> Even though I can print the response (from the cxfbc:provider) to the >> output >> log through the log component, the response is not going into the >> jms:queue >> reply destination queue, instead what is sent to the queue is >> "[Ljava.lang.String;@16aa016". >> > > That looks like the response is a array of some sort that gets > transformed into a String type. > Try to check out whatever that CXF-BC returns. They SOAP world tends > to use List and whatnot. > > Use the tracer and or add a processor as the last step and adapt the > reply from CXF-BC to something that can be send back. > > > >> How do I ensure the legitimate response (the one from cxfbc provider) is >> sent to the replyto queue? >> >> kr. >> -- >> View this message in context: >> http://old.nabble.com/Wrong-response-goes-to-my-replyto-queue-tp26728101p26728101.html >> Sent from the Camel - Users (activemq) mailing list archive at >> Nabble.com. >> >> > > > > -- > Claus Ibsen > Apache Camel Committer > > Author of Camel in Action: http://www.manning.com/ibsen/ > Open Source Integration: http://fusesource.com > Blog: http://davsclaus.blogspot.com/ > Twitter: http://twitter.com/davsclaus > > -- View this message in context: http://old.nabble.com/Wrong-response-goes-to-my-replyto-queue-tp26728101p26728431.html Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.