Stylus Studio XML Editor

Table of contents

Appendices

2.6 Message Reference

Message Reference

The Message Reference Component[top]

The Message Reference Component

A message reference component refers to a named message that forms part of an operation.

Message reference components are local to a given port type operation component, they cannot be referred to by QName

The properties of the Message Reference Component are as follows:

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

  • {variety} One of input, output or fault.

  • {message} A reference, by QName (see [QName resolution]), to a named message component.

For each message reference component in the {messages} property of a port type operation component the {name} property must be unique.

XML Representation of Message Reference Component[top]

XML Representation of Message Reference Component

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

  • A [local name] of input, output or fault

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

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

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

    • A message 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.

  • Zero or more element information items amongst its [children], in order, as follows;

    • An optional documentation element information item (see [Documentation]).

    • Zero or more namespace qualified element information items. Such element information items MUST be a member of one of the element substitution groups related to input, output or fault children of port type operations described in [Language Extensibility].

name attribute information item with input, output or fault [owner][top]

name attribute information item with input, output or fault [owner]

The name attribute information item identifies a given message reference element information item within a given operation element information item.

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.

message attribute information item with input, output or fault [owner][top]

message attribute information item with input, output or fault [owner]

The message attribute information item refers, by QName, to a message component.

The message attribute information item has the following Infoset properties;

  • A [local name] of message

  • A [namespace name] which has no value

The type of the message attribute information item is xs:QName.

Mapping Message Reference's XML Representation to Component Properties[top]

Mapping Message Reference's XML Representation to Component Properties

The mapping between the properties of the Message Reference Component (see [The Message Reference Component]) and the XML Representation of the message reference element information item (see [XML Representation of Message Reference Component]) is as described in [tab_MessageReference_Mapping].

1tab_MessageReference_Mapping Mapping between Message Reference Component Properties and XML Representation Property Mapping
11{name} 11The actual value of the name attribute information item if present, otherwise if {variety} is input or output and the {variety} of the enclosing Port Type Operation component is Input-Only or Output-Only then the actual value of the name attribute information item on the enclosing operation element information item, otherwise if {variety} is input and the {variety} of the enclosing Port Type Operation component is Input-Output then the actual value of the name attribute information item on the enclosing operation with 'Request' appended, otherwise if {variety} is output and the {variety} of the enclosing Port Type Operation component is Input-Output or {variety} is input and the {variety} of the enclosing Port Type Operation component is Output-Input then the actual value of the name attribute information item on the enclosing operation with 'Response' appended, otherwise if {variety} is output and the {variety} of the enclosing Port Type Operation component is Output-Input then the actual value of the name attribute information item on the enclosing operation with 'Solicit' appended.
11{variety} 11If the [local name] of the element information item is input then input, else if the [local name] of the element information item is output then output, else if the [local name] of the element information item is fault then fault.
11{message} 11 The message component resolved to by the value of the message attribute information item