Posted: Wed Jul 06, 2005 7:26 am Post subject: xml 2 cwf mapping: time problem
Novice
Joined: 06 Feb 2003 Posts: 23 Location: Switzerland
hi
i have 2 message definition files, one for xml (input) and one for cwf (output: fixed length)
the xml definition file, i have created with xml schema importer. so, in this mrm message is a xs:time field with physical representation: HH:mm:ssZZZ
at the output message there is also a xs:time field with cwf-definition as follows:
logical properties: type = time
cwf properties: ph. type = fixed length string
format = HH:mm:ssZZZ
length count = 14
length units = bytes
for the message set i use the default-values. broker v5 runs on z/os
when i put a message with the following time-value:
<myTime>15:00:01</myTime>
the result in the cwf-message is:
15:00:01+01:00
thats okay.
but, when i put the following:
<myTime>15:00:01+05:00</myTime>
the result is an error:
Code:
RecoverableException BIP2521E: (.ITIP_FORM_FTR2_Mapping.Main, 86.51) : Error casting a value from CHARACTER to TIME.
An error occurred when casting a value of data type CHARACTER to a value of data type TIME.
Subsequent messages will indicate the context of the error.
2005-07-06 15:56:01.445746 29 RecoverableException BIP2458E: Error casting character string ''14:20:00-05:00'' to a time.
The character string had the value ''14:20:00-05:00''. A character string must have the form 'TIME 'hh:mm:ss[.f+]'', or 'hh:mm:ss[.f+]' for it to be castable to a time value.
Ensure that the string represents a valid time value.
does anybody known the problem? where are my mistakes, i just like to map an xml-message to a fixedlength
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum