camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rrino Gazeta.pl" <rr...@gazeta.pl>
Subject how to send string as a soap message to jbi endpoint
Date Mon, 18 Jul 2011 11:49:43 GMT
Hi

I have a question regarding sending soap message as a String to jbi.endpoint
(cxf-bc concumer):


with the following

   from("timer://tutorial?fixedRate=true&delay=4000&period=10000")
            .setBody(constant(msg))
            .to("jbi:endpoint:
http://servicecom/ws/WebService/cxfbc-provider-endpoint?operation={http://package.com/ws}doSomething&mep=in-out
")
            .to("log:log");


i'm getting

Caused by: java.lang.Exception: Message wrapper element is '{
http://schemas.xmlsoap.org/soap/envelope/}Envelope' but expected '{
http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper}message'

the 'msg'  is valid soap string, should I convert this msg to other object ?
Or should I do something else ?


Apache camel 2.7


regards

rafal

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message