Stylus Studio XML Editor

Table of contents

Appendices

2.10 Service

Service

The Service Component[top]

The Service Component

A service component describes the set of port types that a service provides and the ports they are provided over.

Service are named constructs and can be referred to by QName (see [QName resolution]).

The properties of the Service Component are as follows:

  • {name} An NCName as defined by [XMLNS].

  • {target namespace} A namespace name, as defined in [XMLNS].

  • {port types} A set of port type components

  • {ports} A set of port components

For each service component in the {services} property of a definitions container the combination of {name} and {target namespace} properties must be unique.

XML Representation of Service Component[top]

XML Representation of Service Component

The XML representation for a service definition component is an element information item with the following Infoset properties;

  • A [local name] of service

  • A [namespace name] of http://www.w3.org/2003/03/wsdl

  • One or more attribute information items amongst its [attributes] as follows;

    • A name attribute information item as described below in [ ].

    • Zero or more namespace qualified attribute information items. The [namespace name] of such attribute information items MUST NOT be http://www.w3.org/2003/03/wsdl.

  • One or more element information item amongst its [children], as follows;

  • Zero or more namespace qualified element information items amongst its [children]. Such element information items MUST be a member of one of the element substitution groups related to services described in [Language Extensibility].

name attribute information item with service [owner][top]

name attribute information item with service [owner]

The name attribute information item together with the targetNamespace attribute information item of the definitions element information item forms the QName of the service.

The name attribute information item has the following Infoset properties;

  • A [local name] of name

  • A [namespace name] which has no value

The type of the name attribute information item is xs:NCName.

Mapping Service's XML Representation to Component Properties[top]

Mapping Service's XML Representation to Component Properties

The mapping between the properties of the Service Component (see [The Service Component]) and the XML Representation of the service element information item (see [XML Representation of Service Component]) is as described in [tab_Service_Mapping].

1tab_Service_Mapping Mapping between Service Component Properties and XML Representation Property Mapping
11{name} 11The actual value of the name attribute information item
11{target namespace} 11 The actual value of the targetNamespace attribute information item of the [parent] definitions element information item
11{port type} 11 The set of port type components resolved to by the actual value of the portType attribute information items on the bindings resolved to by the binding attribute information items on the port element information items in [children], if any.
11{ports} 11 The port components corresponding to the port element information items in [children] if any.