<type> element

SOAP/AM Server Development > Service Definition File Reference > Schema Reference >

<type> element

Previous pageReturn to chapter overviewNext page

This element describes a "type". It is a container for one or more <element> elements.

 

parents

types

children

element[1:∞]

Attributes

attribute name

data type

usage

default value

description

 

name

xsd:NCName

required

 

The type name. Must be unique within <types>.

 

size

xsd:positiveInteger

required

 

The number of bytes that the type represents.

 

ddlObject

xsd:token

optional

 

Reserved for use by SOAP/AM SDF Wizard.

 

stringPadding

xsd:token

optional

zeros

Controls the way <element type="string" ...> are treated. Sets the default for <element> members of this <type> used by this server. Valid values are "zeros" and "spaces". See Remarks for the <element> element for more information.

 

encoding

xsd:NCName

optional

 

Indicates the default character encoding that should be used when serializing/deserializing child elements to/from the SOAP envelope. If omitted, the default encoding is the server's default encoding which is typically ISO-8859-1. This value may be altered by Server startup options. A list of available encoding names can be found in Character Encoding Names.

 

defaultAccess

xsd:NCName

optional

public

Indicates the default value of the access attribute of all child elements of this type. Valid values are "public" or "private".

 

Remarks

Example

<types>

   <type name="MyRequestMessage" size="14">    

       <element name="RequestCode" type="short" offset="0" size="2"/>

       <element name="MyDataItem" type="string" offset="2" size="12"/>

   </type>

   <type name="MyReplyMessage" size="10">

       <element name="ReplyCode" type="short" offset="0" size="2"/>

       <element name="MyDataItem" type="double" offset="2" size="8"/>

   </type>

</types>