How do you actually invoke wsconsume?
I call it through ant. The problem turned out to be large maxOccurs within my xml schema. When I removed all the maxOccurs, then it compiled correctly.
ïƒ To solve â€œOutofMemoryException:Max GenSpace Exceptionâ€� in Jboss portal server:
see this link and edit the run.bat in windows of conf.run in Unix
might be useful