ping On Tue, Sep 23, 2014 at 3:12 PM, Rajith Vitharana <raji...@wso2.com> wrote:
> Hi All, > > Regarding the jira [1]. > In DSS when using json output mapping we can filter out the output fields > according to the person's role who invokes the service. If he have > permission, those fields will be visible to them. If he doesn't have > permission, only other fields will be visible to him. This is explained in > [2] > > But as the jira says, this feature doesn't work in standalone pack. > In wsdl file of the data service, these fields are marked as optional by > adding 'minOccurs="0"' attribute. But the "GsonXMLStreamWriter.java" class > in "axis2-json" module doesn't consider this "minOccurs" attribute when > converting the xml output to json. This causes the error mentioned in the > jira [1]. > I have changed the source to avoid this situation and consider the > "minOccurs" attribute when doing the conversion part. Is this the better > way of resolving this problem? If so please review the code and commit to > kernel patch 009. > > [1] - https://wso2.org/jira/browse/DS-963 > [2] - https://docs.wso2.com/display/DSS321/JSON+Mapping > > Thanks > > -- > Rajith Vitharana > > Software Engineer, > WSO2 Inc. : wso2.com > Mobile : +94715883223 > Blog : http://lankavitharana.blogspot.com/ > -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev