9 Replies Latest reply on Dec 17, 2010 8:06 PM by ffang

    Problem when call external WS : No binding factory for namespace ...

    tibo5555

      Hi everybody,

       

      I have a problem when I try to consume an external web service. Fuse ESB send an error:

       

      Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

       

      I need your help, I don't find efficient solution...

       

      My details explain:

      I try to create a restful service wich consumer an external Web service with this implementation:

       

      External consumer using Get Http (http://..../Myservice?id=test)

               

       

       

      consume (Part 1)

              v

      -


      (FUSE ESB ENVIRONMENT)

       

              v                              

      Bundle Osgi Restful in ServiceMix      

               

                                

       

      call                    

              v                         

      Bundle Osgi Consumer WS               

       

              v                    

      -


              |

              | consume (Part 2)

              v

      External Web Service SOAP

       

                      

      About Part 1 it's ok, I get to expose a Restful Service.

       

      My problems is when Fuse try to consume my external web service.

      I have created a spring-osgi-bundle-archetype with dependency:

      - cxf-bundle

      - cxf-rt-transports-http

      - cxf-rt-frontend-jaxws

      - cxf-rt-bindings-soap

      --> All in 2.2.10-fuse-00-00 version

      - jaxws-api in 2.2v version

       

      I generate sources from my external wsdl with cxf-codegen-plugin.

       

      I consume this service with:

       

      MyService myService = new MyService();

      MyPort port = myService.getPortSoap();

       

      When I call "myService.getPortSoap()" Fuse ESB write an error in log:

       

      org.apache.cxf.interceptor.Fault: org.apache.cxf.service.factory.ServiceConstructionException

      Caused by: org.apache.cxf.BusException: No binding factory for namespace http://schemas.xmlsoap.org/wsdl/soap/ registered.

       

      I search and try issue but I don't find a solution...

       

      Can you help me please...???

       

      I use : - Fuse ESB 4.3

                - Maven 3

                - Eclipse

       

                              • My bundle-context.xml :

       

       

       

                              • My bundle-context-osgi.xml :

       

       

       

      ************

       

      Tibo