Hi Andrei,
cxf:bean is not required. The producer in cxf uri should work as you
expected. There is quite a few of unit tests that cover producer uri
expressed in just "cxf".
Here is one example.
https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfProducerOperationTest.java
return "cxf://" + getSimpleServerAddress()
+ "?serviceClass=org.apache.camel.component.cxf.HelloService"
+ "&defaultOperationName=" + ECHO_OPERATION;
Regards.
On 09/28/2011 12:14 PM, Andrei Shakirin wrote:
Hi,
I have a following question regarding camel:cxf component:
is it required for producer to use cxf:bean URI?
I expect that producer also works for uri without bean:
uri="cxf://anAddress?options"
My problem that Camel tries to create a service (act as consumer) for following
route:
<camelContext xmlns="http://camel.apache.org/schema/spring">
<camel:route>
<camel:from uri="timer://myTimer?fixedRate=true&period=2000"/>
<camel:to
uri="cxf://http://localhost:8088/mockFlightReservationSOAP?defaultOperationName=reserveFlight&dataFormat=MESSAGE&wsdlURL=file:///c:/1/wsdls/FlightReservation.wsdl"/>
</camel:route>
</camelContext>
Console output: "INFO: Creating Service
{http://www.eclipse.org/swordfish/samples/FlightReservation/}FlightReservationService
from WSDL: file:///c:/1/wsdls/FlightReservation.wsdl "
I expect that Camel tries to call external web service instead its creation.
Where is my error?
Regards,
Andrei.