Hi All,
probably I'm doing something stupid here but I have problem with
creating simple proxy with cxfbc:consumer and cxf;provider.
My xbean.xml:
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:healthindicator="http://ws.commons.project.rafal.pl">
<cxfbc:consumer wsdl="classpath:healthIndicator.wsdl"
targetEndpoint="healthindicator:HealthIndicatorProxy"
targetService="healthindicator:HealthIndicatorService"
targetInterface="healthindicator:HealthIndicatorPortType"
locationURI="http://localhost:8193/robust/HealthIndicatorService">
</cxfbc:consumer>
<cxfbc:provider wsdl="classpath:healthIndicator.wsdl"
locationURI="http://localhost:8080/health-indicator-example/healthIndicator"
service="healthindicator:HealthIndicatorService"
endpoint="HealthIndicatorProxy"
interfaceName="healthindicator:HealthIndicatorPortType">
</cxfbc:provider>
</beans>
On my Tomact the healthIndicator service is exposed:
part of the wsdl:
<wsdl:service name="HealthIndicatorImplService"><wsdl:port
binding="tns:HealthIndicatorImplServiceSoapBinding"
name="HealthIndicatorImplPort"><soap:address
location="http://localhost:8080/robust-health-indicator-example/healthIndicator"/></wsdl:port></wsdl:service></wsdl:definitions>
But when I'm trying to deploy my sa I get:
<loc-message>org.apache.cxf.service.factory.ServiceConstructionException: Could
not find definition for service
{http://ws.commons.robust.swmind.pl}HealthIndicatorService.</loc-message>
What am I doing wrong?
ServiceMix version 3.6-fuse
regards
rafal