2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.

 
 Apache Tuscany > Home > SCA Overview > SCA Java > Java SCA Documentation Menu > SCA Java binding endpoints User List | Dev List | Issue Tracker  
Resources

SCA binding endpoints

The value of the endpoint URI used by an SCA service or reference binding is defined in the varrious SCA Specifications. The Assembly specification, page 53, section 1.7.2 "Form of the URI of a Deployed Binding" defines the overall rules, and specific binding specifications may modify or add addtional rules, for example, the Web service binding specifiction on page 3, section 2.1.1 "Endpoint URI resolution" adds further web service related endpoint rules.

The Tuscany runtime and binding implementations aim to all work consistently so that once you understand the basic endpoint URI rules and conventions it should be easy to determine an actual endpoint from reading the composite SCDL.

Some examples

The following composite fragment would result in the web service address of http://localhost:8080/MyService

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

    <service name="MyService" promote="SomeComponent">
       <binding.ws/>
    </service>

    . . .

</composite>

The following composite fragment would result in the web service address of http://localhost:8080/MyComponent/MyService

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

    <component name="MyComponent">
        <service name="MyService">
           <binding.ws/>
        </service>
        . . .
    </component>

</composite>
website stats