WSDL generation options notes
If you are planning to work with WSDL generation, you are advised to review these notes.
- For the
DECIMAL(5,2)
data type, whenwsdl_decimalsize
isTRUE
, the generated WSDL file contains the total size and the size of the fractional part of the decimal:<types> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.mycompany.com/types/"> <simpleType name="echoDecimal5_2_a_dec5_2_out_FGLDecimal"> <restriction base="decimal"> <totalDigits value="5" /> <fractionDigits value="2" /> </restriction> </simpleType> </schema> </types> <message name="echoDecimal5_2"> <part name="dec5_2" type="f:echoDecimal5_2_a_dec5_2_in_FGLDecimal" /> </message>
When
wsdl_decimalsize
isFALSE
, the total size and the size of the fractional part are not mentioned:<message name="echoDecimal5_2"> <part name="dec5_2" type="xsd:decimal" /> </message>
- If the WSDL file does not contain the size, the client application has no way of knowing the
size. In this case, a default value for the size is generated. For example, the
exported server type
DECIMAL(5,2)
becomes aDECIMAL(32)
on the client side. - It is better to keep the options
wsdl_arraysize
,wsdl_stringsize
andwsdl_decimalsize
set toTRUE
so that the client program can do exact type mapping. The default for all three options isTRUE
. - When setting a facet constraint attribute on a simple data type, the generation of the WSDL will take this attribute into account even if an option has been set to perform the opposite.
- When setting one facet constraint attribute, all of the default constraint attributes won't be generated anymore unless you specify them as facet constraint attributes.