SIG Model Improvement --------------------- Key: COMMONS-65 URL: https://wso2.org/jira/browse/COMMONS-65 Project: WSO2 Commons Issue Type: Improvement Components: dynamic-codegen Reporter: Dimuthu Gamage Assignee: Dimuthu Gamage
Currently Janapriya and I are in the process of improving the SIG model, We have done fair amount of improvements testing against different WSDLs. But we have to make sure this dont break the other dependent projects like 'Mashup', Here are the suggested changes, 1. Adding inherited-content element, <complexType="testType"> <sequence> <element name="inherited-element" type="xs:string"/> </sequence> </complexType> <element name="test"> <complexContent> <extension base="tns:testType"> <sequence> <element name="new-element" type="xs:string"/> </sequence> </extension> </complexContent> </element> With the changes new sig model will be like, (Here shows the highlighted fields only) <param name="test" ..contentModel="sequence"> <inherited-content contentModel="sequence" extension="tns:testType"> <param name="inherited-element" .. /> </inheirted-content> <param name="new-element" .. "/> </param> Note: that this way we can handle any level of inheritance without much problem. 2. Adding inner-content element, That is kind of following schema, <element name="test"> <sequence> <choice> <element name="test1"> <element name="test2"> </choice> <all> <element name="test3"> <element name="test4"> </all> <element name="test5"> </sequence> </element> the sig will be like, <param name="test" contentModel="sequence"> <inner-content name="choice"> <param name="test1"/> <param name="test2"/> </inner-content> <inner-content name="all"> <param name="test3"/> <param name="test4"/> </inner-content> <param name="test5"/> </param> 3. Adding 'attrib' element The sig for the attribute will be like, <attrib required="yes" token="#in" targetNamespace="http://ws.apache.org/axis2/xsd" name="rowCount" type="int" type-namespace="http://www.w3.org/2001/XMLSchema" simple="yes"/> So please let us know any concerns on these. Thanks Dimuthu -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://wso2.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Commons-dev mailing list Commons-dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/commons-dev