Simple Types


I am trying to create a schema which has a simple type of an integer but when the schema is created in webMethods it always appears as a decimal instead of an integer. I would appreciate if anyone can explain the reason and what I should do to create a integer simple type.


XML Schema:

<?xml version=“1.0” encoding=“utf-8” ?>
<xs:schema targetNamespace=“http://localhost/Global/1.00/GlobalTypes” xmlns=“[url=“Bing”]Bing
xmlns:GlobalTypes=“http://localhost/Global/1.00/GlobalTypes” xmlns:xs=“[url=“XML Schema”][/url]”>

<xs:simpleType name=“IntValue”>
<xs:restriction base=“xs:integer” />


Its because integer is derived from decimal by fixing the value of fractionDigits to be 0 and disallowing the trailing decimal point. This results in the standard mathematical concept of the integer numbers. The value space of integer is the infinite set {…,-2,-1,0,1,2,…} In other words the base type of integer is decimal.