[ https://issues.apache.org/jira/browse/AXISCPP-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nadir amra closed AXISCPP-836. ------------------------------ Resolution: Won't Fix I do not see the value since one would have to also try to do this for complex types....which is a much harder thing to do. Closing issue. > Generated stubs of array types have additional overloaded constructor in > which you pass the size of the array to be created. > ---------------------------------------------------------------------------------------------------------------------------- > > Key: AXISCPP-836 > URL: https://issues.apache.org/jira/browse/AXISCPP-836 > Project: Axis-C++ > Issue Type: Improvement > Components: Client - Stub > Environment: n/a > Reporter: Fred Preston > Priority: Minor > Attachments: BeanParamWriter.java, ParmHeaderFileWriter.java > > > From a user perspective, it would be good to get the generated stubs of array > types to have an additional overloaded constructor in which you pass the size > of the array to be created. For example:- > For a string array:- > stringArrayType::stringArrayType( int iSize) > { > stringItem.m_Size = iSize; > stringItem.m_Array = new xsd__string [iSize]; > for( int iIndex = 0; iIndex < iSize; iIndex++) > { > stringItem.m_Array[iIndex] = ""; > } > } > Or/And: > longArrayType::longArrayType( int iSize) > { > longItem.m_Size = iSize; > longItem.m_Array = (xsd__long **) new xsd__long * [iSize]; > for( int iIndex = 0; iIndex < iSize; iIndex++) > { > longItem.m_Array[iIndex] = new xsd__long(); > *longItem.m_Array[iIndex] = (xsd__long) 0; > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@axis.apache.org For additional commands, e-mail: c-dev-h...@axis.apache.org