You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sram <sr...@hotmail.com> on 2012/01/27 22:58:34 UTC

CXF-Camel Proxy Bug?

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.

Re: CXF-Camel Proxy Bug?

Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Jan 28, 2012 at 3:18 AM, sram <sr...@hotmail.com> wrote:
> Finally after many hours of testing, the issue was resolved. Camel route was
> not adding SOAP tags to the calls intended to reach external webservice.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXF-Camel-Proxy-Bug-tp5436846p5437208.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Glad you found a solution. And thanks for letting us now.


-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: CXF-Camel Proxy Bug?

Posted by sram <sr...@hotmail.com>.
Finally after many hours of testing, the issue was resolved. Camel route was
not adding SOAP tags to the calls intended to reach external webservice. 

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