Hello,
I have successfully managed to expose a jsr181 component as an consumer
endpoint of a httpcomponent using XBean. However, I need to specify the
service and endpoint or otherwise I get an exception. However, the
interfaceName is automatically produced by the jsr181 component and I
was thinking that it should suffice to provide the interfaceName of the
proxied endpoint?
I also wanted to inspect the exposed wsdl definition, however, when I go
to "http://localhost:8150/Echo/?wsdl" I get
"No wsdl is available for this service". What am I doing wrong? The
EchoService2 is the same as in the jsr181 tests.
Thanks,
Stefan
<sm:activationSpec>
<sm:component>
<http:component>
<http:endpoints>
<http:endpoint service="test:MyEchoService"
endpoint="myEcho"
role="consumer"
soap="true"
locationURI="http://localhost:8150/Echo/"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
</http:endpoints>
</http:component>
</sm:component>
</sm:activationSpec>
<sm:activationSpec service="test:MyEchoService" endpoint="myEcho">
<sm:component>
<jsr181:component>
<jsr181:endpoints>
<jsr181:endpoint pojoClass="jsr181.EchoService2"
annotations="none" />
</jsr181:endpoints>
</jsr181:component>
</sm:component>
</sm:activationSpec>