Looks like the algorithm used to draw the wiring lines between
service/reference only works if the reference specify the target
service in the form of Component/Service URI. Note that, when the
component only have one service, a Component URI is also valid, but it
looks like the SCA tools does not recognize it and thus no wiring
lines are drawn. Please see below my test composite :
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:s="http://sample"
xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0" name="rest"
targetNamespace="http://sample">
<component name="ExpertRegistryComponent">
<implementation.java
class="org.apache.tuscany.sample.expertise.ExpertRegistryImpl"/>
<service name="ExpertRegistry">
<interface.java
interface="org.apache.tuscany.sample.expertise.ExpertRegistry"/>
</service>
</component>
<component name="RestExpertiseLocatorComponent">
<implementation.java
class="org.apache.tuscany.sample.expertise.RestfulExpertiseLocator"/>
<service name="Servlet">
<t:binding.http uri="http://localhost:8200/experts"/>
</service>
<reference name="experts" target="ExpertRegistryComponent"/>
</component>
</composite