Hi everyone!
I convert a JDBC-Adapter-Service-Output-DocumentType to a xml-string using the built in service pub.document:documentToXMLValues. Fields with datatype timestamp in the oracle db are represented in the output-xml-string as shown:
<?xml version="1.0" encoding="UTF-8"?>
<Values version="2.0">
...
<date name="EINLAGERZEITPUNKT">2006-07-28</date>
<date name="AUSLAGERZEITPUNKT">2006-07-30</date>
...
</Values>
If I try to take the way back using pub.document:XMLValuesToDocument to convert the string back to a document, I get a “com.wm.util.coder.InvalidDatatypeException: [ISC.0076.9006] decoding: date” error.
Here is a part of the stack trace:
com.wm.util.coder.InvalidDatatypeException: [ISC.0076.9006] decoding: date
at com.wm.util.coder.XMLCoder.doDateDecode(XMLCoder.java:854)
at com.wm.util.coder.XMLCoder.doRecordDecode(XMLCoder.java:1283)
at com.wm.util.coder.XMLCoder.decode(XMLCoder.java:314)
at com.wm.util.coder.Coder.decodeFromBytes(Coder.java:104)
at pub.document.XMLValuesToDocument(document.java:92)
The webM IS Java API Reference says, that only values and numbers can be encoded by service pub.document:documentToXMLValues. So this could be a reason, why the values can not be decoded again. But why is the encoding working and resulting in a “date”-tag?
Can someone provide hints, how to get my pub.document:XMLValuesToDocument-Service to work?
Thanks in advance,
Max.