Hi,
You can't have
<from uri=<b>"cxfbc:consumer:CustomerIncidentService"* />
There's no camel endpoint like it.
You need use camel-jbi component in this case.
So you need a cxf bc consumer like you already have
<cxfbc:consumer wsdl="classpath:CustomerIncidentServiceSoap.wsdl"
targetService="person:CustomerIncidentService"
targetInterface="person:CustomerIncidentServiceSoap"/>
and the camel router should be like
<camelContext>
<route>
<from uri="jbi....." />
<log message="FUSE CoE TEST LOG MESSAGE CUSTOM MESSAGE
"/>
</route>
</camelContext>
The from uri="jbi....." will expose a jbi endpoint on NMR, which could
be the target of cxf bc consumer. You may need take a look at[1] to
get more details about how the camel-jbi uri should be.
[1]http://camel.apache.org/jbi.html
Freeman
On 2011-11-24, at 下午4:39, Gnanaguru S wrote:
Hi
I am trying to publish a wsdl and route it to camel. I saw a example
in
servicemix named " cxf-wsdl-first ". I can publish my own wsdl using
this
example. It uses cxf-bc and cxf se component to publish it. Now i
want to
route it to a camel route and then it routes it a log.
My cxf bc code was defined in xbean.xml file as shown below:
<cxfbc:consumer wsdl="classpath:CustomerIncidentServiceSoap.wsdl"
targetService="person:CustomerIncidentService"
targetInterface="person:CustomerIncidentServiceSoap"/>
I am trying to route like this, is the endpoint specified in the
from tag is
right ?. But i am not successful.
<route>
<from uri=<b>"cxfbc:consumer:CustomerIncidentService"* />
<log message="FUSE CoE TEST LOG MESSAGE CUSTOM MESSAGE
"/>
</route>
</camelContext>
Please help me out.
Regards
Guru
-----
Cheers
Guru
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Using-the-servicemix-cxf-bc-as-endpoint-tp5019578p5019578.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com