While designing BO, I had set default values for some of the simple elements. Now when I test this mapping, with no values assigned to these elements, default values are not populated. As per my understanding, in an XSD, a default value is automatically assigned to the element when no other value is specified. ??
Pinned topic BO - Default value for XSD is not populated
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-18T11:09:16Z at 2013-01-18T11:09:16Z by SystemAdmin
Re: BO - Default value for XSD is not populated2012-10-26T22:18:12ZThis is the accepted answer. This is the accepted answer.I'm not sure about this particular feature, but not all XSD features are supported in BOs or maps. This is because WESB does not use xml internally to represent the data, but DataObjects instead. If you create a BO instance from a XSD, you will get an "empty" BO object, i.e. its interior is not populated. I doubt that the factory shall check for default values when creating a BO.
It's good to know that BOs follow an "opposite" idea than that of XML. While in XML each node has its name, name of a BO is determined by its parent, BOs do not have their own names. This difference causes many complications when converting BOs to XML and vice versa. That's why a BO created from a XML forgets the name of its root element from which it was created.
Re: BO - Default value for XSD is not populated2012-12-12T09:58:08ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
In XSLT map.....in properties >>policy
we have settings for default values for fields(for all cases).we can pass default values or also we can generate
It's working for me...