1 Reply Latest reply on Jul 28, 2009 5:13 AM by martinmurphy

    Invoking an external Web Service with CXF-BC

    balamsoft

      Hi everyone,

       

      I'm new to FUSE ESB. I'm trying to invoke an external Web Service via a CXF BC (provider) with FUSE ESB 3. However, I haven't been able to make it work. The logs doesn't show anything at all (no error or success messages).

       

      I know the Web Service is not being reached because there's no SOAP response and my WS doesn't insert a database record (which is part of its work).

       

      I found in the documentation that:

       

      - wsdl refers to classpath:path/to/wsdl/file or http://path/to/wsdl/file

      - service refers to <wsdl_targetnamespace>:<service/@name>

      - endpoint refers to <service/port/@name>

      - interfaceName corresponds to <wsdl_targetnamespace>:<portType/@name>

       

      Is this correct?

       

       

      This is the code of my provider service unit:

       

      <beans xmlns="http://www.springframework.org/schema/beans"

             xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"

             xmlns:odews="http://efs.comfin.ge.com/ws/ode_wf/service"

             xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"

             xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0 servicemix-cxf-bc.xsd

             http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

       

       

       

       

      And the WSDL of my web service:

       

      <wsdl:definitions name="ode_wf_ext"

           targetNamespace="http://efs.comfin.ge.com/ws/ode_wf/service"

           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

           xmlns:tns="http://efs.comfin.ge.com/ws/ode_wf/service"

           xmlns:xsd="http://www.w3.org/2001/XMLSchema"

           xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">

       

      </wsdl:binding>

      ...

      <wsdl:operation name="send_email">

           <soap:operation

                soapAction="http://efs.comfin.ge.com/ws/ode_wf/service/send_email" />

                <wsdl:input>

                     <soap:body use="literal" />

                </wsdl:input>

                <wsdl:output>

                     <soap:body use="literal" />

                </wsdl:output>

           </wsdl:operation>

      </wsdl:binding>

      <wsdl:service name="ode_wf_ext">

           <wsdl:port name="ode_wf_extSOAP" binding="tns:ode_wf_extSOAP">

                <soap:address

                     location="http://dev.efs.comfin.ge.com:80/axis2/services/ode_wf_ext/" />

           </wsdl:port>

      </wsdl:service>

      </wsdl:definitions>

       

      I have been struggling with this SU for quite a time... and I still don't have a clue.

       

      Any help will be appreciated.

       

      Thanks,

      Angel