You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by fat_belly <wh...@yahoo.com.cn> on 2010/10/18 09:52:00 UTC

cxfbc:consumer and camel routes

I have the following cxfbc consumer and cxfbc producer:

<cxfbc:consumer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="soap"
targetService="calculate:CalculateService"
targetEndpoint="calculate:Calculate"
locationURI="http://myserver:8000/Calculate"/>

<cxfbc:producer wsdl="mycalculate.wsdl"
service="calculate:CalculateService"
endpoint="calculate:Calculate"
locationURI="http://myserver:8080/services/Calculate"/>

Currently, I have the following flow:

external client --> cxf consumer --> cxf producer --> external service

How would I introduce routing btwn the consumer and producer that would
result in the following flow:

external client --> cxf consumer --> routing --> cxf producer --> external
client

Can you give me an example, thank you?

-- 
View this message in context: http://servicemix.396122.n5.nabble.com/cxfbc-consumer-and-camel-routes-tp3217057p3217057.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: cxfbc:consumer and camel routes

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

you can use a Camel route looking like:

<route>
	<from uri="jbi:cxfconsumer"/>
         <!-- routing logic -->
	<!-- for instance, using message filter -->
         <filter>
		<xpath>$foo = 'bar'</xpath>
		<to uri="jbi:cxfproducer"/>
	</filter>
</route>

Anyway, you can implement all in a camel route using camel-cxf component.

Regards
JB

On 10/18/2010 09:52 AM, fat_belly wrote:
>
> I have the following cxfbc consumer and cxfbc producer:
>
> <cxfbc:consumer wsdl="mycalculate.wsdl"
> service="calculate:CalculateService"
> endpoint="soap"
> targetService="calculate:CalculateService"
> targetEndpoint="calculate:Calculate"
> locationURI="http://myserver:8000/Calculate"/>
>
> <cxfbc:producer wsdl="mycalculate.wsdl"
> service="calculate:CalculateService"
> endpoint="calculate:Calculate"
> locationURI="http://myserver:8080/services/Calculate"/>
>
> Currently, I have the following flow:
>
> external client -->  cxf consumer -->  cxf producer -->  external service
>
> How would I introduce routing btwn the consumer and producer that would
> result in the following flow:
>
> external client -->  cxf consumer -->  routing -->  cxf producer -->  external
> client
>
> Can you give me an example, thank you?
>

Re: cxfbc:consumer and camel routes

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

I already replied your question on fuse forum[1].

Not sure why you need ask same questions on different place :-)

[1]http://fusesource.com/forums/thread.jspa?threadID=2326

Freeman
On 2010-10-18, at 下午3:52, fat_belly wrote:

>
> I have the following cxfbc consumer and cxfbc producer:
>
> <cxfbc:consumer wsdl="mycalculate.wsdl"
> service="calculate:CalculateService"
> endpoint="soap"
> targetService="calculate:CalculateService"
> targetEndpoint="calculate:Calculate"
> locationURI="http://myserver:8000/Calculate"/>
>
> <cxfbc:producer wsdl="mycalculate.wsdl"
> service="calculate:CalculateService"
> endpoint="calculate:Calculate"
> locationURI="http://myserver:8080/services/Calculate"/>
>
> Currently, I have the following flow:
>
> external client --> cxf consumer --> cxf producer --> external service
>
> How would I introduce routing btwn the consumer and producer that  
> would
> result in the following flow:
>
> external client --> cxf consumer --> routing --> cxf producer -->  
> external
> client
>
> Can you give me an example, thank you?
>
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/cxfbc-consumer-and-camel-routes-tp3217057p3217057.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.


-- 
Freeman Fang

------------------------
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Open Source SOA: http://fusesource.com
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org