MK,

The <cxf:provider> is used to call an existing service from the ESB.
In the locationUri, you can specify the url where the external service
is available, the service name should match the external service name.

To expose a webservice from the ESB, you need to define a
<cxf:consumer/> element, which allows you to define a locationUri and
the wsdl to expose.  With the target service/endpoint endpoint
attribute, you can refer to the <cxf:provider/> endpoint you created
earlier and that should do the trick.

Regards,

Gert Vanthienen
------------------------
Open Source SOA: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/



2009/10/20 Kumako22 <[email protected]>:
>
> Hello,
> There is a problem.
>
> I have to connect to ESB through servicemix-cxf-bc and then the ESB is going
> to connect to my service and send something to that service. How should I
> configure servicemix-cxf-bc xbean.xml ??
>
> <cxfbc:consumer wsdl="/wsdl/calculator.wsdl"
>                      service="calculator:CalculatorService"
>                      endpoint="CalculatorPort"
>                      targetEndpoint="CalculatorPortProxy"
>                      targetService="calculator:CalculatorService"
>                      targetInterface="calculator:CalculatorPortType">
>
> </cxfbc:consumer>
>
> and
>
> <cxfbc:provider wsdl="/wsdl/calculator.wsdl"
>                      locationURI="http://localhost:9001/bridgetest";
>                      service="calculator:CalculatorService"
>                      endpoint="CalculatorPortProxy"
>                      interfaceName="calculator:CalculatorPortType">
>
> </cxfbc:provider>
>
> The service is load from server.
>
> MK.
> --
> View this message in context: 
> http://www.nabble.com/servicemix-cxf-bc-Redirect-to-ESB-and-then-to-service-problem-tp25970764p25970764.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to