cancel
Showing results for 
Search instead for 
Did you mean: 

Basic XML Doubt

Former Member
0 Kudos
52

Hi Everyone,

i have one of the elements in the Schema As Integer. But when iam passing the value as '456,09' it is getting validated. is this a valid value for integer type.

Regards,

Sita Rama Raju

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Raj,

Genreally it should not except the floating point values:

Check this link : http://www.xml.dvint.com/docs/SchemaDataTypesQR-2.pdf

http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#int

Regards,

Ashish

Former Member
0 Kudos

Hi Raj,

Was the issue solved?

Reagrds,

Ashish

Answers (4)

Answers (4)

Shabarish_Nair
Active Contributor
0 Kudos

i have one of the elements in the Schema As Integer

>>>

in this case it wouldnt be appropriate if you are passing 456,09 or even 456.09.

Integers in XML:

+ integer is ·derived· from decimal by fixing the value of ·fractionDigits· to be 0. 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,...}. The ·base type· of integer is decimal.

Lexical representation -

integer has a lexical representation consisting of a finite-length sequence of decimal digits (#x30-#x39) with an optional leading sign. If the sign is omitted, "+" is assumed. For example: -1, 0, 12678967543233, 100000.

So you cant use . as it would be a decimal data type and not integer.

Former Member
0 Kudos

hi

Message was edited by:

Rajiv Subramanian

former_member187339
Active Contributor
0 Kudos

Hi,

Your web service only accepts integer right... '456,09' one is not an integer.. change it to '456.09'

Regards

Suraj

Former Member
0 Kudos

Hi

Message was edited by:

Rajiv Subramanian

Former Member
0 Kudos

Hi,

Inbound messages are not validated in XI. You can have error when you use it as target in message mapping.

Regards,

Wojciech

Former Member
0 Kudos

HI Wojciech,

i am not talking about XI validation but my target Webservice is accepting the the

decimal values for fields which are definened in the Schema as Integer.

regards,

raj