<element name="A_Element" type="tns:MyString"/> <xs:simpleType name="My String"> <xs:restriction base="xs:string"> <xs:minLength value="5"/> </xs:restriction> </sx:simpleType>BTT Web services tool could get the customized name (MyString). So developers could define the type mapping rule from XSD 'MyString' to BTT 'String'.
<element name="A_Element"> <xs:simpleType> <xs:restiction base="xs"string"> <xs:minLength value="5"/> <xs:restriction> </xs:simpleType> </element>There is no name for the customized type. So we could only read the value of the 'base' attribute which is 'string' here. For the type mapping, developers should define the type mapping between XSD 'string' to BTT 'String'.