Overcome validation errors on required xml properties in webservice classes
Hello,
I'm looking for a way to programmatic ally add the parameter 'VALIDIFNULL' to classes that extent %SerialObject.
This to hopefully resolve the validation errors I'm getting on webservice request messages, where certain properties are not required, but lower down the tree some properties are.
I have too many classes to do this manually and with the next SOAP wizard run I probably loose the added parameter.
Some help would be very much appreciated.
Regards, Michel
Comments
A dirty hack:
- make a new class extending %SerialObject with VALIDIFNULL set.
- export your serial classes (to XML)
- replace %SerialObject by your MySerialObject
- reload the changed classes.
Not so nice but I had the same issue with some 100 Serial Objects.
The more sophisticated way would be do it programatically over %Dictionary.DefinedProperty .....
Very interesting and very time consuming