Hi all,
I'm trying to run a Web Service on ServiceMix with no luck (so far).
I can run cxf-wsdl-first example and it works fine for me. I could
swear that my example varies only in namespace and a different Web
Service method...
I have a simple HelloWorld WS with String sayHi(String) method.
I'm stuck on Could not find route for exchange. I saw that there are
many posts on this mailing group about this problem, but I could find
one that would match my case. And it's a very simple case...
My SA is very simple, it contains two SAs:
1. web-service-bc-su with:
service.wsdl
xbean.xml
the xbean.xml looks like this:
<cxfbc:consumer wsdl="classpath:service.wsdl"
targetService="tns:HelloWorldImpl"
targetInterface="tns:HelloWorld">
</cxfbc:consumer>
2. web-service-se-su with:
Java JAX-WS implementation of service.wsdl (service.wsdl and my
implementation is correct, I even compared it to and replaced with
Java classes generated using cxf code gen maven plugin with -impl
option)
xbean.xml
which looks like this:
<cxfse:endpoint>
<cxfse:pojo>
<bean class="org.xh.studies.servicemix.ws.HelloWorldImpl" />
</cxfse:pojo>
</cxfse:endpoint>
there are no errors during deployment but when I call it from my unit
test I get:
WARN - DefaultBroker - ServiceName
({http://ws.servicemix.studies.xh.org/}HelloWorldImpl) specified for
routing, but can't find it registe
red
WARN - DefaultBroker - InterfaceName
({http://ws.servicemix.studies.xh.org/}HelloWorld) specified for
routing, but can't find any matching
components
WARN - DefaultBroker - ServiceName
({http://ws.servicemix.studies.xh.org/}HelloWorldImpl) specified for
routing, but can't find it registe
red
WARN - DefaultBroker - InterfaceName
({http://ws.servicemix.studies.xh.org/}HelloWorld) specified for
routing, but can't find any matching
components
2009-11-22 23:00:30 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now Could not find
route for exchange: InOut[
id: ID:91.94.90.105-1251d798797-4:12
status: Active
role: provider
interface: {http://ws.servicemix.studies.xh.org/}HelloWorld
service: {http://ws.servicemix.studies.xh.org/}HelloWorldImpl
operation: {http://ws.servicemix.studies.xh.org/}sayHi
in: <?xml version="1.0" encoding="UTF-8"?><jbi:message
xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://ws.servicemix.studies.
xh.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="sayHi"
type="msg:sayHi" version="1.0"><jbi
:part><ns2:sayHi
xmlns:ns2="http://ws.servicemix.studies.xh.org/"><arg0>Lukasz</arg0></ns2:sayHi></jbi:part></jbi:message>
] for service: {http://ws.servicemix.studies.xh.org/}HelloWorldImpl
and interface: {http://ws.servicemix.studies.xh.org/}HelloWorld
Any ideas?
When I append cxf loggers to my Web Service I see that incoming
message is logged and then I see SoapFault sent as a response...
thanks,
Łukasz