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
According to this page , xsd:int is:
...is the set of common single-size integers (32 bits), the integers between -2147483648 and 2147483647.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.