I have a wsdl file. I am parsing the wsdl file and storing the complex types in a map as key value pair. Key is the complex type name and value is an arraylist containing the elements under that particular complex type. A complex type can have another complex type as an element. This complex type has one more complex type and so on..For a large wsdl files, there are many complex types.I am iterating through this map and extracting the elements from it. While iterating, I am calling the same function recursively so that I can get all the elements for a complex type. While doing so, I am getting StackOverflow exception.
Please let me know how to resolve this stackoverflow exception. Is there any other way or solution to achieve the above desired result.
I also wanted to know whether there is a limitation for storing the elements in an arraylist.
Thanks & Regards, Gayatri Shinde