on 02-18-2009 8:41 AM
Hi, I'm getting this error in the sxmb_moni: System.InvalidOperationException: Instance validation error: 'PROVISION' is not a valid value for OperationTypeEnum.
I know that it means that 'PROVISION' is not valid as a value but the thing is that if the input is 'provision' with lower case then it is accepted. and since it is a xslt mapping then i need to correct it in the code.
But I have tried almost everything without getting any positive result. I basically doesn't understand the following parameters:
<simpleType name="OperationTypeEnum">
<restriction base="string">
* <enumeration value="provision"/>*
* <enumeration value="PROVISION"/>*
at first there were only 'provision' but i thought that if I add 'PROVISION' into the enumeration value then it would be accepted but it doesn't. I just want to make it accept upper case input.
can somebody help with this? // Thanks
Hi,
Give pattern type is {[[A-Z]]}*.It will allow upper case value.
If pattern type is {[[a-z]][[A-Z]]} then it will allow both upper case and lower case values.
Regards,
Prakasu
Edited by: prakasu on Feb 18, 2009 10:13 AM
Edited by: prakasu on Feb 18, 2009 10:14 AM
Edited by: prakasu on Feb 18, 2009 10:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sonny,
you did everything right. May be you forgot to activate or you have a cache problem (update it in SXI_CACHE) or something else, but your xsd part is ok.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Take out enumeration value below from your element in the XSD or WSDL.
<enumeration value="provision"/>*
<enumeration value="PROVISION"/>*
It basically means that the XML element only takes those values you mentioned in the enumeration.
Regards,
Lim...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi thanks for your answer,
you mean that i only need to erase these two fields?
<enumeration value="provision"/>
<enumeration value="PROVISION"/>
or all: <simpleType name="OperationTypeEnum">
* <restriction base="string">*
* <enumeration value="provision"/>*
* <enumeration value="PROVISION"/>*
</restriction>
</simpleType>
Doesn't <enumeration value="PROVISION"/> mean that it should accept upper case? (the input always is either 'provision' or 'PROVISION'
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.