I am attempting to consume a wsdl service using cfx:proxy-client in Mule ESB 3.3 but keep getting this error
org.apache.cxf.service.factory.ServiceConstructionException: Could not find definition for service {http://support.cxf.module.mule.org/}ProxyService. at org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:139) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:383) at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:506)
Below is my simple flow:
<flow name="spider-middleware" doc:name="spider-middleware"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="salesforce" doc:name="HTTP"/> <cxf:proxy-client operation="getCustomerByID" payload="body" wsdlLocation="http://localhost:4546/eplus-ws-fake/services/EplusCustomer/v1?wsdl" enableMuleSoapHeaders="true" doc:name="SOAP"/> </flow>
The service is hardcoded to return a customer for getCustomerByID(1). Please shed some lights on how do I get around the issue? Thanks.