camel cxfbean component throwing errors

Solution Verified - Updated -

Issue

  • I have a CXF web service that is exposed via Camel cxfEndpoint in a camel route. I am trying to use CXFBean component to provide the web service implementation as a backing bean. I deployed the war file on JBoss Fuse 7.0. However when I call the web service (via soapui) ,I get the soap fault
<soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>Part {http://example.com/services/helloworld}greeting should be of type com.example.types.helloworld.Greeting, not org.apache.cxf.helpers.LoadingByteArrayOutputStream$LoadedByteArrayInputStream</faultstring>
      </soap:Fault>
  • and on the server log , I get the following exceptions
02:36:44,646 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (default task-2) Interceptor for {http://example.com/services/helloworld}HelloWorldImplService has thrown exception, unwinding now: java.lang.RuntimeException: Can't find input stream in message

Environment

  • Red Hat Fuse
    • 7.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content