You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Suppose a new attribute is added to an Admin Service (WSDL) and the corresponding stub is changed. Then the existing clients that have not regenerated the stub will get an error "Unexpected Subelement" when trying to access a service that will return the new attribute.
To overcome this compatibility issue I have introduced a new field type annotation "IgnoreNullElement" in Axis2 and a configuration property "forceIncludeNullElements" in axis2.xml file(IS-Home/repository/conf/axis2/axis2.xml).
Or configure the parameter to false to skip the properties that are null. If the parameter is not set in the axis2.xml it will be considered as the parameter is set to false.
This annotation and the property in the axis2.xml should be documented for developers use. Affected Product Version:
Asix2 versions: master, 1.6.1-wso2v28, 1.6.1-wso2v20
The text was updated successfully, but these errors were encountered:
Description:
Suppose a new attribute is added to an Admin Service (WSDL) and the corresponding stub is changed. Then the existing clients that have not regenerated the stub will get an error "Unexpected Subelement" when trying to access a service that will return the new attribute.
To overcome this compatibility issue I have introduced a new field type annotation "IgnoreNullElement" in Axis2 and a configuration property "forceIncludeNullElements" in axis2.xml file(IS-Home/repository/conf/axis2/axis2.xml).
PR - 7c7ce54
There are two main use cases of this annotation.
How to use the annotation.
Add the annotation @IgnoreNullElement before the property declaration.
Eg:
Then add the below parameter and configure it to true to not skip properties that are null
Or configure the parameter to false to skip the properties that are null. If the parameter is not set in the axis2.xml it will be considered as the parameter is set to false.
This annotation and the property in the axis2.xml should be documented for developers use.
Affected Product Version:
Asix2 versions: master, 1.6.1-wso2v28, 1.6.1-wso2v20
The text was updated successfully, but these errors were encountered: