SCA Configuration Type

The SCA Configuration type for distribution providers is:

  sca

The namespace contains the following service properties:

Property name

Type

Description

sca.bindings String+ A URL to an XML bindings file. The file must conform to the http://www.osgi.org/xmlns/sca/1.0 XML namespace and have the bindings element as top. The URL can be specified relative to the bundle.
sca.definitions String+ A URL to an XML definitions file, specified in http://www.osoa.org/xmlns/sca/1.0/sca-definitions.xsd. The file must conform to the http://www.osoa.org/xmlns/sca/1.0 XML namespace and have the definitions element as top. The URL is specified relative to the bundle.

The following is the XML schema for the bindings file:

 <?xml version="1.0" encoding="UTF-8"?>
 <!--
    /*
    * $Revision:$
    * 
    * Copyright (c) OSGi Alliance (2009, 2009). All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *
    *      http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    */
 -->
 <schema xmlns="http://www.w3.org/2001/XMLSchema" 
    xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200903"
    xmlns:osgi-sca="http://www.osgi.org/xmlns/sca/v1.0.0"
    targetNamespace="http://www.osgi.org/xmlns/sca/v1.0.0" version="1.0.0" 
    elementFormDefault="qualified">

    <annotation>
        <documentation xml:lang="en">
            This is the XML Schema for bindings used by the 
            Remote Services sca configuration type. An instances of 
            a bindings document can be referenced by a service to
            described the detailed configuration for how the service 
            should be made available (e.g. as a soap/http Web service).
            The SCA specifications from OASIS define the binding types which
            can be included in a bindings document.
        </documentation>
    </annotation>

    <element name="bindings" type="osgi-sca:Tbindings" />

    <complexType name="Tbindings">
        <sequence>
            <element ref="sca:binding" minOccurs="0" maxOccurs="unbounded" />
            <any namespace="##other" processContents="lax" minOccurs="0"
                maxOccurs="unbounded" />
        </sequence>
        <anyAttribute />
    </complexType>

    <attribute name="must-understand" type="boolean" default="false">
        <annotation>
            <documentation xml:lang="en">
                This attribute should be used by extensions to documents
                to require that the document consumer understand the
                extension.
            </documentation>
        </annotation>
    </attribute>
 </schema>