Hi Folks, Hopefully someone will have come across this before. I am generating java code from a large WSDL, the WSDL design is outside of my control, I am a consumer of this WSDL and am thus generating client side code.
The generation using WSDL2JAVA succeeds, however, the generated source will not compile due method length errors in both the following methods of the main "APIServiceStub" class - populateFaults - fromOM Eclipse reports the issue as - "The code of method fromOM(OMElement, Class, Map) is exceeding the 65535 bytes limit" The error itself from the command line is as so (apologies for blanking out the package/class names): [javac] C:\Work\Eclipse\workspace\....xxx.java:10432: code too large [javac] private void populateFaults(){ [javac] ^ [javac] C:\Work\Eclipse\workspace\....xxx.java:212725: code too large for try statement [javac] }catch(java.lang.Exception e){ [javac] ^ [javac] C:\Work\Eclipse\workspace\....xxx.java:179036: code too large [javac] public org.apache.xmlbeans.XmlObject fromOM( [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 3 errors Many thanks for any assistance, Alan.