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
Update template using webservices
Moderator: car031
Post
Re: Update template using webservices
what kind of programming language you are using to do this?
Post
Re: Update template using webservices
Hi Walter,
I prepared for you an example in Java, you can find it in the zip attached.
Essentially it is very simple, just change the attribute Value of a WSAttribute and then save back the template
I guess if you are using other languages (PHP it might be a bit more complicated)
In this case, let me know how it goes
I prepared for you an example in Java, you can find it in the zip attached.
Essentially it is very simple, just change the attribute Value of a WSAttribute and then save back the template
I guess if you are using other languages (PHP it might be a bit more complicated)
In this case, let me know how it goes
- Attachments
-
- Main.zip
- Java class example
- (815 Bytes) Downloaded 576 times
Who is online
Users browsing this forum: No registered users and 31 guests