Hi,
I want to create a pass-through mediation for a web service.
So I want to cxf-bc:provider and consumer to expose and consume the same
WSDL.
The point here is the service and the endpoint name are the same so
ServiceMix doesn't accept
to deploy the consumer.
We want to do that to be able to add audit and security steps in the esb.
The only solution I found is to create a fake endpoint for the consumer
service ...
here is the services configuration :
<context:property-placeholder
location="classpath:esb-client-services.properties"/>
<cxfbc:consumer wsdl="classpath:HelloService.wsdl"
service="hello:HelloService"
endpoint="*exposedHelloService*" // Here is the fake endpoint
targetUri="${esb.client.services.rootUrl}/helloService"
targetService="hello:HelloService"
targetEndpoint="HelloService"
/>
<cxfbc:provider
wsdl="classpath:HelloService.wsdl"
service="hello:HelloService"
endpoint="HelloService"
locationURI="${ekip.client.services.rootUrl}/HelloService"
/>
Thanks for helping me !
Manuel