I am defining an XSD file that will be used for a WSDL import. In my XSD I
am defining the objects and WS Operation messages. I have a few questions:
- For interoperability sake, how should objects be named, not including
messages? Should they be like this "appUser" or "appuser". Is there any
standards anywhere?
- Our database has the object defined with underscores and eveything is
uppercase, i.e. APP_USER. Should we define objects with an underscore?
- Built-In Types versus SimpleTypes. Let's say I have an object that
represent a table/object. That field has APP_USER_DESC, that is 50
characters long. If the type is represented in the XSD like this.
<xs:complexType name="app_user">
<xs:sequence>
<xs:element name="app_user_id" type="xs:int" />
<xs:element name="app_user_desc" type="xs:string" />
</xs:sequence>
</xs:complexType>
I cannot set the length of the string like this:
<xs:simpleType name="maxlength50">
<xs:restriction base="xs:string">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="app_user">
<xs:sequence>
<xs:element name="app_user_id" type="xs:int" />
<xs:element name="app_user_desc" type="maxlength50" />
</xs:sequence>
</xs:complexType>
My question is this too limiting? I can't stick anything over 50 characters
in the database but thought I would ask?
Is there is a guide for this kind of XSD development?
Thanks,
--
Mike Logan