Hi,
I have a problem handling CXF Binding Components that point to external Web
Services. Let me explain my problem:
- I have implemented three Service Assemblies: A1, A2 and A3
- Each SA needs to connect to an external Web Service WS1. So, in all the
assemblies I defined a CXF BC Service Unit like this:
<cxfbc:provider wsdl="classpath:WebService_1.wsdl"
service="ws1ns:WS1Name"
useSOAPEnvelope="true"
useJBIWrapper="false"
synchronous="false"
locationURI="/WS1">
- I can deploy A1, but when I try to deploy A2 or A3 ServiceMix throws an
Exception that says something like 'I cannot deploy the CXF BC Service Unit.
The endpoint {http://my.company.com/ws}myServiceOne already exists.'
So, I tried creating another Service Assembly called 'Aws' having the WS
declaration defined above. This way I don't have to repeat the cxf:provider
in A1, A2 and A3 and ServiceMix will allow me to install al of them.
But now here's the problem: What happens if I need different settings (like
useSOAPEnvelope, useJBIWrapper, etc) for each of my Service Assemblies?
This configuration will not work in this case...
Q: How can I declare a CXF BC to an external WS more than one time with
different settings? I am supposing the service attribute should always be
service="ws1ns:WS1Name", otherwise the BC will not point to my WS.
ws1ns:WS1Name = <wsdl_targetNamespace>:<wsdl_serviceName>
which is:
ws1ns:WS1Name = {http://my.company.com/ws}myServiceOne
Thanks,
Angel
--
View this message in context:
http://www.nabble.com/Design-problem---Declaring-BCs-to-external-Web-Services-tp25772778p25772778.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.