There is away. Not a pretty one, but it should work. Ask WSDL provider to split the WSDL file into 2 files. They have to split module into multiple modules.
1. Manually extract the elements from the WSDL that you don't need and then send that through WSDL2Apex. It will generate less Apex code. 2. Use the Partner API rather than the Enterprise API. The WSDL is smaller as it doesn't have dedicated complex types for every object in your org. 3. Use the version of WSDL2Apex in the FuseIT SFDC Explorer (http://www.fuseit.com/explorer) (Disclaimer - this is a free tool). After you import the WSDL you will be given an option to select the web menthods you need access to. You can then opt to comment out or exclude and unnessacary parts of the code not required by the selected methods.
Please mark this as best answer if it works for you.
Please share the Error that you are getting .
i m parsing enterprise WSDL
What is the size of WSDL file?
The WSDL document can be at most 1MB. When the document is parsed, each namespace becomes an Apex class.
For more details : Check 7 Easy Steps to Generate Apex Class From WSDL In Salesforce (http://howtodoitinsalesforce.blogspot.in/2016/12/7-easy-steps-to-generate-apex-class.html)
Please mark this as best answer if it works for you.
Thanks,
Nitish
There is away. Not a pretty one, but it should work. Ask WSDL provider to split the WSDL file into 2 files. They have to split module into multiple modules.
Thanks,
Nitish
You have a few options:
1. Manually extract the elements from the WSDL that you don't need and then send that through WSDL2Apex. It will generate less Apex code.
2. Use the Partner API rather than the Enterprise API. The WSDL is smaller as it doesn't have dedicated complex types for every object in your org.
3. Use the version of WSDL2Apex in the FuseIT SFDC Explorer (http://www.fuseit.com/explorer) (Disclaimer - this is a free tool). After you import the WSDL you will be given an option to select the web menthods you need access to. You can then opt to comment out or exclude and unnessacary parts of the code not required by the selected methods.
Please mark this as best answer if it works for you.
Thanks,
Nitish