Hi,
Here is my situation ..
I have same wsdl being implemented by multiple providers.
I need to route to one of the provider based on incoming message header or a
field in soap enevelop.
I could succesfully do that using http and eip combination. ( http
consumer---> eip router---> http provider----> back to client)
Now I was trying to do that using CXF and eip  ( soap client--->cxf consumer
----> eip router---> CXF-provider -----> client)
How do I configure all these providers in CXF-BC.

Since CXF needs service name and endpoint to be same as in wsdl service name
and port.

So I can not not have multple provider setup like this ...
<cxfbc:provider wsdl="classpath:wsdl/ipws-services.wsdl"
                    service="ns1:AvnEsbService" 
                    endpoint="AvnEsbSoapPort" 
                   
locationURI="http://mycompanyName.com/CONTEXTROOT_1/services/AvnEsbService";
                    interfaceName="ns1:AvnEsbSoapPort">
</cxfbc:provider>

<cxfbc:provider
wsdl="classpath:ipws-wsdl/1.0.3/faa/1.0.3/wsdl/ipws-services.wsdl"
                    service="ns1:AvnEsbService" 
                    endpoint="AvnEsbSoapPort" 
                   
locationURI="http://mycompanyName.com/CONTEXTROOT_2/services/AvnEsbService";
                    interfaceName="ns1:AvnEsbSoapPort">
</cxfbc:provider>

This set up errors out with 
<loc-message>More than one endpoint found in the SU for 
key:
{http://www.faa.gov/avnis/ipws/wsdl}AvnEsbService:AvnEsbSoapPort</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: More than
one endpoint found in the SU for key:
{http://mycompany//wsdl}AvnEsbService:AvnEsbSoapPort

Now if I change the endpoint to be different then it says End point not
found in wsdl.

How can I achieve this using CXF ?

Appreciate your help ...

-- 
View this message in context: 
http://www.nabble.com/CXF-BC-provider-configuration-tp23747507p23747507.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to