I was looking over the HWWS/HWWSclient sample pair, and had the following
observations/questions:
1) For helloworld-wsclient, the HelloWorldServiceComponent does not use the
@Reference annotation. So, according to the Java Component Impl spec, Sec
1.2.7,
shouldn't we, during introspection, calculate the helloWorldService to
represent a Property, not a Reference? Yet we promote it to a
Composite-level reference.
Does this make sense?
2) What is the point of promoting it anyway? It seems the only point of
promoting it would be to allow this Composite to serve as the impl for
another component.
Since we don't do that in this simple sample, doesn't it just add
confusion?
It seems to be the SCDL should look something like this, ideally:
<component name="HelloWorldServiceComponent">
<implementation.java class="helloworld.HelloWorldServiceComponent"/>
<reference name="helloWorldService">
<binding.ws wsdlElement="
http://helloworld#wsdl.port(HelloWorldService/HelloWorldSoapPort)"/>
</reference>
</component>
3) The Composite reference uses the 'class' attr on <interface.java>
<interface.java class="helloworld.HelloWorldService" />
Isn't this supposed to be an attr named 'interface'? This may als
show, to a degree, that the Composite-level reference is really useless if
it doesn't even matter that this is wrong.
Scott