Could you provide your full stack trace ? My guess is that you are trying to marshall an inputstream. If you are using the same pojo with jaxb annotations and jackson/gson (without any transformation), you first need to unmarshall the content with a jackson/gson dataformat and then marshall it with a jaxb dataformat.
Rgds On Mon, May 9, 2016 at 9:31 AM miri eyni <miri.e...@sapiens.com> wrote: > hello > > > I need to build REST-SOAP gateaway > > > > JaxbDataFormat jaxb = new JaxbDataFormat(false); > > jaxb.setSchemaLocation("C:\\Users\\miri.eyni\\Desktop\\wsdl\\a.xsd"); > > > > from("jetty:http://localhost:8080/json?matchOnUriPrefix=true > ").marshal(jaxb).to(" > http://localhost:8888/ws/pServices?bridgeEndpoint=true").unmarshal(jaxb) > > > when i send request i got the following error : > > org.apache.camel.http.common.HttpOperationFailedException: HTTP operation > failed invoking http://localhost:8888/ws/pServices with statusCode: 500 > at > > org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:239) > at > org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:161) > at > > org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) > at > org.apache.camel.processor.SendProcessor.process(SendProcessor.java:145) > at > > org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77) > at > > org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:468) > at > > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:121) > at org.apache.camel.processor.Pipeline.process(Pipeline.java:83) > at > > org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:190) > at > > org.apache.camel.component.jetty.CamelContinuationServlet.service(CamelContinuationServlet.java:191) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) > at > org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669) > at > > org.eclipse.jetty.servlets.MultiPartFilter.doFilter(MultiPartFilter.java:146) > at > > org.apache.camel.component.jetty.CamelFilterWrapper.doFilter(CamelFilterWrapper.java:43) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) > at > > org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) > at > org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) > at > > org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) > at > > org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) > at org.eclipse.jetty.server.Server.handle(Server.java:499) > at > org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311) > at > org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257) > at > org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635) > at > > org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555) > at java.lang.Thread.run(Thread.java:745) > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Arnaud Deprez Software Engineer Phone: +32 497 23 30 44 Linked'In: https://www.linkedin.com/in/deprezarnaud Github: https://github.com/arnaud-deprez