8 Replies Latest reply on May 26, 2010 4:38 AM by fsalceda

    CXF - Providers with only different locationURI

    fsalceda

      I'm using Fuse 4.2 and I have 2 cxf-providers that bind 2 different instances of the same service. Each instance of the service is located in a different HOST so the cxf-providers differ only in locationURI.

      Both declare the same service and endpoint so how can I call that one I need? I mean if I deploy both cxf-providers with different locationURI (but same service and endpoint) how can I manage to call the concrete service and endpoint I need in different situations?

       

      {{{

           <cxfbc:provider wsdl="classpath:wsdl/ToPlus-Service.wsdl"

               locationURI="http://HOST:8888/axis2/services/ToPlus-Service"

               service="toplus:ToPlus-Service"

               endpoint="ServiceHttpSoapEndpoint"

               interfaceName="toplus:ToPlus-ServicePortType"

                useJBIWrapper="false"

                useSOAPEnvelope="true"/>

      }}}

       

      Edited by: fsalceda on May 10, 2010 11:01 AM