Update template using webservices
Posted: Mon Jan 21, 2013 3:46 pm
Hi,
I'm trying to update a template using webservice but I'm not able to do it if the template has a field of type "preset string". For example, if I have one WSAttribute like this:
(wsAttribute){
editor = 1
label = "test"
mandatory = 0
name = "test"
position = 0
stringValue = "a, b, c, d"
type = 0
value = "a, b, c, d"
},
I have the following error:
Server raised fault: 'org.apache.xerces.dom.ElementNSImpl cannot be cast to javax.xml.datatype.XMLGregorianCalendar'
If I delete the "value" field, it works ok, but them the field becomes a common string, not a "preset" one.
My use case is: get a template, change the possible values of a "preset string" attribute, update the template.
Is it a bug in LogicalDoc or am I doing something wrong?
Thanks,
Walter
I'm trying to update a template using webservice but I'm not able to do it if the template has a field of type "preset string". For example, if I have one WSAttribute like this:
(wsAttribute){
editor = 1
label = "test"
mandatory = 0
name = "test"
position = 0
stringValue = "a, b, c, d"
type = 0
value = "a, b, c, d"
},
I have the following error:
Server raised fault: 'org.apache.xerces.dom.ElementNSImpl cannot be cast to javax.xml.datatype.XMLGregorianCalendar'
If I delete the "value" field, it works ok, but them the field becomes a common string, not a "preset" one.
My use case is: get a template, change the possible values of a "preset string" attribute, update the template.
Is it a bug in LogicalDoc or am I doing something wrong?
Thanks,
Walter