You need to sign in to do that
Don't have an account?

Too many parameters
Hey,
I generated the Java class files from enterprise WSDL file by
AXIS. When I compile the java source codes, the error messages "too
many parameters" shows. I found that the delegated classes such as Lead
and Opportunity have more than 255 parameters in the construction
methods.
Any advice?
Aaron Zhang
PS:
Severity and Description Path Resource Location Creation Time Id
Too many parameters, parameter reference_1_State_Province__c is exceeding the limit of 255 words eligible for method parameters wsdl2java/src/com/sforce/soap/enterprise/sobject Lead.java line 999 1260843911185 1928757
Too many parameters, parameter region__c is exceeding the limit of 255 words eligible for method parameters wsdl2java/src/com/sforce/soap/enterprise/sobject Opportunity.java line 865 1260844217102 1928760
Which version of axis are you using?. the latest should have a fix to this. This is a known JAVA limitation. (Constructors with more than 255 parameters are not allowed.). Check the below link. Make sure you get the latest build of Axis 1.4
http://mail-archives.apache.org/mod_mbox/ws-axis-user/200809.mbox/%3C817522051E65D511A2740001028074C404266987@EX1%3E