Rafal,
Try the following config for the provider:
<cxfbc:provider wsdl="classpath:healthIndicator.wsdl"
locationURI=
"http://localhost:8080/health-indicator-example/healthIndicator"<http://localhost:8080/health-indicator-example/healthIndicator>
service="healthindicator:HealthIndicatorImplService"
endpoint="HealthIndicatorImplPort">
</cxfbc:provider>
For more info, see [1], which instructs you how to map the service and
endpoint attributes on the JBI endpoint definition to the WSDL elements.
[1] http://fusesource.com/docs/esb/3.3/fsf_bc/ESBFSFBCConfigProvider.html
Regards,
Raúl.
2011/11/10 Rafal Janik <[email protected]>
> **
> There was a miss click in copy-paste - but the question is still actual.
>
>
>
> 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"<http://servicemix.apache.org/cxfbc/1.0>
>
> xmlns:healthindicator="http://ws.commons.project.rafal.pl"<http://ws.commons.project.rafal.pl>>
>
>
> here should be
> <beans
> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"<http://servicemix.apache.org/cxfbc/1.0>
>
> xmlns:healthindicator="http://ws.commons.robust.swmind.pl"<http://ws.commons.robust.swmind.pl>
> >
>
> <cxfbc:consumer wsdl="classpath:healthIndicator.wsdl"
>
> targetEndpoint="healthindicator:HealthIndicatorProxy"
>
> targetService="healthindicator:HealthIndicatorService"
>
> targetInterface="healthindicator:HealthIndicatorPortType"
> locationURI=
> "http://localhost:8193/robust/HealthIndicatorService"<http://localhost:8193/robust/HealthIndicatorService>>
>
> </cxfbc:consumer>
>
> <cxfbc:provider wsdl="classpath:healthIndicator.wsdl"
> locationURI=
> "http://localhost:8080/health-indicator-example/healthIndicator"<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"<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
>
>
>
>
>
>
>
>
>
>
> --
> [image: Software Mind]
>
> *Rafa³ Janik*
> Software Engineer *Software Mind SA*
> ul. Bociana 22A
> 31-231 Krakow
> Polska
>
> Tel. +48 12 252 34 00
> Fax: +48 12 252 34 01
> Mobile:+48 668 48 36 13
> [email protected]
> www.softwaremind.pl
>
> Software Mind SA z siedzib± w Krakowie przy ul. Bociana 22A, 31-231
> Krakow
> NIP 9452012822, kapita³ zak³adowy PLN 500,000.00 (w ca³o¶ci wp³acony), KRS
> 0000300409
> S±d Rejonowy dla Krakowa ¦ródmie¶cia w Krakowie, XI Wydzia³ Gospodarczy KRS
> Ta wiadomo¶æ mo¿e zawieraæ materia³y poufne i objête tajemnic±
> zawodow±, do wy³±cznego u¿ytku odbiorcy (odbiorców). Surowo wzbronione s±
> wszelkie zmiany, wykorzystywanie, przechowywanie, dystrybucja lub
> ujawnienie przez inne osoby. Je¶li nie jest Pan/Pani zamierzonym odbiorc±
> (lub osob± upowa¿nion± do odbioru w imieniu odbiorcy), prosimy o kontakt z
> nadawc± przez wiadomo¶æ zwrotn± oraz usuniêcie wszelkich kopii niniejszej
> wiadomo¶ci. Poza tym poczta elektroniczna jest podatna na uszkodzenia
> danych, przechwytywanie, sabota¿, nieupowa¿nione zmiany i wirusy. Wysy³amy
> i odbieramy wiadomo¶ci poczty elektronicznej wy³±cznie na takiej zasadzie,
> ¿e nie ponosimy odpowiedzialno¶ci za jakiekolwiek tego typu uszkodzenia,
> przechwycenia, sabota¿, zmiany lub wirusy, ani jakichkolwiek konsekwencje
> tego typu okoliczno¶ci.
>