<type>
This element describes a "type". It is a container for one or more <element> elements.
Attributes
Attribute | Data Type | Usage | Default Value | Description |
---|---|---|---|---|
name | xsd:NCName | required | none | The type name. Must be unique within <types>. |
size | xsd:positiveInteger | required | none | The size of the type in bytes. |
ddlObject | xsd:token | optional | none | Reserved for use by the Service Definition Wizard. Do not modify the contents of this attribute. |
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". |
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>