Hi everyone,

I'm new to ServiceMix. I'm trying to invoke an external Web Service via a
CXF BC (provider) with Servicemix 3.3.1. 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).

What I have figured so far:

    * 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";>

<cxfbc:provider wsdl="classpath:ode_wf_ext.wsdl"
service="odews:ode_wf_ext"
endpoint="ode_wf_extSOAP"
interfaceName="odews:ode_wf_ext"
locationURI="http://dev.efs.comfin.ge.com:80/axis2/services/ode_wf_ext/";
synchronous="true"
useJBIWrapper="true">

<cxfbc:inFaultInterceptors>
<bean class="com.ge.efs.servicemix.mailpoller.MailWSInterceptor" />
</cxfbc:inFaultInterceptors>

<cxfbc:inInterceptors>
<bean class="com.ge.efs.servicemix.mailpoller.MailWSInterceptor" />
</cxfbc:inInterceptors>

<cxfbc:outFaultInterceptors>
<bean class="com.ge.efs.servicemix.mailpoller.MailWSInterceptor" />
</cxfbc:outFaultInterceptors>

<cxfbc:outInterceptors>
<bean class="com.ge.efs.servicemix.mailpoller.MailWSInterceptor" />
</cxfbc:outInterceptors>

</cxfbc:provider>

</beans>

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
-- 
View this message in context: 
http://www.nabble.com/Invoking-an-external-Web-Service-with-CXF-BC-tp24685630p24685630.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to