Skip to Content
0
Mar 18, 2011 at 09:01 AM

Handling restrictions in message mappings

25 Views

Hi,

i have got a question regarding handling restrictions in xsd-files. Is there any support while developing a message mapping where unrestricted fields are mapped on fields with restrictions?

Example:

Targetfield has got a restriction like this:

<xsd:restriction base="xsd:string">

<xsd:maxLength value="70"/>

</xsd:restriction>

Without having a look on xsd-source it's very easy to overlook this information. Not using validation it results in cutting of any letters of a string longer than 70 without giving any information on runtime.

Using validation it should fail on runtime, but is there any tool (mechanism) supporting designtime issues, beside looking up all restrictions in the xsd by myself?

Kind regards,

Markus Schalk