A Sample Web Resource

Tuscany allows you to publish Web resources using SCA components declared with an <implementation.resource> component implementation type and made available to HTTP clients using a <binding.http> binding.

Here is the SCA composite that publishes this page:

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
  targetNamespace="http://web"
  name="WebResource">

  <component name="myWeb">
    <implementation.resource location="myContent"/>
    <service name="Resource">
      <binding.http/>
    </service>
  </component>      

</composite>