You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ernest Lu <sy...@sina.com> on 2013/08/29 10:08:48 UTC
CXF Component
Hi,
I have the following route:
from("cxf://http://0.0.0.0:8080/proxy?dataFormat=MESSAGE&serviceClass=com.ProxyClass")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
//TODO
}
})
.to("cxf://http://192.168.1.90:9005/helloService?dataFormat=MESSAGE");
The last endpoint is a external web service.If the route receive a soap
request,how do I factor out the message payloads and then create a
correct request and send it to the external web service
thanks
--
View this message in context: http://camel.465427.n5.nabble.com/CXF-Component-tp5738196.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXF Component
Posted by Willem jiang <wi...@gmail.com>.
When you using the MESSAGE data format, you can consume and produce message body as a stream.
Please go through the camel-cxf wiki page[1] for more information.
[1]http://camel.apache.org/cxf.html
--
Willem Jiang
Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: 姜宁willem
On Thursday, August 29, 2013 at 4:08 PM, Ernest Lu wrote:
> Hi,
> I have the following route:
>
> from("cxf://http://0.0.0.0:8080/proxy?dataFormat=MESSAGE&serviceClass=com.ProxyClass")
> .process(new Processor() {
> @Override
> public void process(Exchange exchange) throws Exception {
> //TODO
> }
> })
> .to("cxf://http://192.168.1.90:9005/helloService?dataFormat=MESSAGE");
>
> The last endpoint is a external web service.If the route receive a soap
> request,how do I factor out the message payloads and then create a
> correct request and send it to the external web service
>
> thanks
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CXF-Component-tp5738196.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
RE: CXF Component
Posted by "Siano, Stephan" <st...@sap.com>.
Hi,
If you want to use payloads, why don't you use the dataFormat=PAYLOAD? Then you will have the payload in the message body (and can do with it what you intend to to).
Best regards
Stephan
-----Original Message-----
From: Ernest Lu [mailto:syf_lx@sina.com]
Sent: Donnerstag, 29. August 2013 10:09
To: users@camel.apache.org
Subject: CXF Component
Hi,
I have the following route:
from("cxf://http://0.0.0.0:8080/proxy?dataFormat=MESSAGE&serviceClass=com.ProxyClass")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
//TODO
}
})
.to("cxf://http://192.168.1.90:9005/helloService?dataFormat=MESSAGE");
The last endpoint is a external web service.If the route receive a soap
request,how do I factor out the message payloads and then create a
correct request and send it to the external web service
thanks
--
View this message in context: http://camel.465427.n5.nabble.com/CXF-Component-tp5738196.html
Sent from the Camel - Users mailing list archive at Nabble.com.