If I specify a parameter in my WSDL is of type xsd:int, what is the max and min values for that parameter? It is dependant on the technology the web service is implemented in? I am using Java, so am I constrained by the int type in Java or should the web service library (Axis) be handling that?
Yes, 32 bits. From Eric van der Vlist's RelaxNG datatype reference:
<xsd:simpleType name="int" id="int">
<xsd:restriction base="xsd:long">
<xsd:minInclusive value="-2147483648"/>
<xsd:maxInclusive value="2147483647"/>
</xsd:restriction>
</xsd:simpleType>
Additionally, from the W3C XML Schema Recommendation, Part 2:
int is derived from long by setting the value of maxInclusive to be 2147483647 and minInclusive to be -2147483648
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With