I am trying to use the camel-cxf-proxy example with CXF2.5.1-CAMEL 2.6.0 with
no luck. The only difference between the example and my setup, is I use
PAYLOAD mode and run the realwebservice on an external webcontainer.

The route receiver complains, it cannot covert CxfPayload to InputStream. Is
this fixed in some higher versions? If so, what is the workaround for me who
is stuck with Java5.0

Exhausted after delivery attempt: 1 caught:
org.apache.camel.InvalidPayloadException: No body available of type:
java.io.InputStream but has value: org.apache.camel.component.cxf.CxfPayload
headers: null body: [ [<tns:ping xmlns:tns="http://services.mycomp.com/ping";
xmlns="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tnsB="http://services.mycomp.com/ping/types/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><tnsB:str>Hello
String</tnsB:str></tns:ping>]]
Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type
converter available to convert from type:
org.apache.camel.component.cxf.CxfPayload to the required type:
java.io.InputStream with value org.apache.camel.component.cxf.CxfPayload
headers: nullbody: [ [<tns:ping xmlns:tns="http://services.mycomp.com/ping";
xmlns="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:tnsB="http://services.mycomp.com/ping/types/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>     
<tnsB:str>string</tnsB:str>    </tns:ping>]]]


My setup,

Jaxws:endpoint backed by @javax.jws.WebService implementation running on web
container A (actual webservice)

CxfEndpoint backed @WebServiceProvider hosting the proxy

I hit, http://localhost:9081/WBServices/stanford/PingService   - success

then,

http://localhost:9081/WBServices/stanford/PingProxyService  - Fails w/ above
error when trying to route.


Any help is much appreciated.

--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-Camel-Proxy-Bug-tp5436846p5436846.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to