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 interoperabilit y 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:complexTy pe 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:simpleTyp e name="maxlength 50">
<xs:restricti on base="xs:string ">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
<xs:complexTy pe name="app_user" >
<xs:sequence>
<xs:element name="app_user_ id" type="xs:int" />
<xs:element name="app_user_ desc" type="maxlength 50" />
</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
am defining the objects and WS Operation messages. I have a few questions:
- For interoperabilit y 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:complexTy pe 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:simpleTyp e name="maxlength 50">
<xs:restricti on base="xs:string ">
<xs:maxLength value="50" />
</xs:restriction>
</xs:simpleType>
<xs:complexTy pe name="app_user" >
<xs:sequence>
<xs:element name="app_user_ id" type="xs:int" />
<xs:element name="app_user_ desc" type="maxlength 50" />
</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
Comment