hi all, I have post this issue on http://camel.465427.n5.nabble.com/in-camel-example-cxf-proxy-demo-which-in-camel-distribution-how-EnrichBean-enrich-method-was-called-td5729745.html <http://camel.465427.n5.nabble.com/in-camel-example-cxf-proxy-demo-which-in-camel-distribution-how-EnrichBean-enrich-method-was-called-td5729745.html>
thanks Claus Ibsen-2's replay,he is a nice gay!! I follow his suggestion and read corresponding section, but i still can't find the answer. I also read cxf's data format's tips on http://camel.apache.org/cxf.html <http://camel.apache.org/cxf.html> following is my previous post's content: I am a newbie in camel,when I read the camel-example-cxf-proxy demo which in camel distribution, I confuse with EnrichBean.java file the source code of EnrichBean.java is very simple as follows: public class EnrichBean { public Document enrich(Document doc) { Node node = doc.getElementsByTagName("incidentId").item(0); String incident = node.getTextContent(); // here we enrich the document by changing the incident id to another value // you can of course do a lot more in your use-case node.setTextContent("456"); System.out.println("Incident was " + incident + ", changed to 456"); return doc; } } it was used in camel_config.xml as follows: <bean id="enrichBean" class="org.apache.camel.example.cxf.proxy.EnrichBean"/> <camelContext xmlns="http://camel.apache.org/schema/spring"> <endpoint id="callRealWebService" uri="<a href="http://localhost:$">http://localhost:${real.port}/real-webservice?throwExceptionOnFailure=false"/> <route> <from uri="cxf:bean:reportIncident?dataFormat=MESSAGE"/> <to uri="log:input"/> <to uri="bean:enrichBean"/> <to ref="callRealWebService"/> <to uri="log:output"/> </route> </camelContext> my question is: how EnrichBean.enrich method was called and why the parameter to enrich() is Document type? any reply is appriciate! -- View this message in context: http://camel.465427.n5.nabble.com/in-camel-example-cxf-proxy-demo-which-in-camel-distribution-how-EnrichBean-enrich-method-was-called-tp5730076.html Sent from the Camel - Users mailing list archive at Nabble.com.