Hi~

This is how my camel route looks like:
<camelContext id="test_context" xmlns="http://camel.apache.org/schema/spring";>
<route>
<from uri="cxf:bean:wsConsumer?dataFormat=MESSAGE" />
<convertBodyTo type="com.mycompany.bean.TestBean" />
<to uri="sql:select * from projects where license = # order by 
id?dataSource=#myDS"/>
        <to uri="log:output" />
</route>
</camelContext>

Below is what my camel route want to do, I found it's difficult to achieve step 
2:  
1.setup a cxf endpoint to consume the requst, 
2.convert the request into one custom bean(List type)
3.using SqlComponent to access database(MySQL),do a query action.
4.logout the query result.

the step 1,3,4 is easy to achieve ,step 2 is difficult for me.
I known we can using JAXB to unmarshal the input webservice request into a 
"custom bean". 
but how the "custom bean" create from? I'm so confued. I just have a wsdl 
file,and the service related classes.
Can anyone please tell me in how to create this "custom bean" ? 

Thanks in advance for any help! 




a new camel rider
chen jie.

Reply via email to