function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tejashri Deogaonkar 13Tejashri Deogaonkar 13 

Unable to Parse WSDL

Hi ,
I am tring to Parse WSDL using Generate from WSDL in Apex Class Section. I am able to complete successful parsing of WSDL however when I am trying to generate Apex Code getting below error. 

Apex Generation Failed
Class name 'Opportunity' already in use. Please edit WSDL to remove repeated names

Can you please help me to resolve this. I tried to rename the complextype in WSDl still no Luck :(

Please help me to get this resolved.
Thank you !!!
Daniel BallingerDaniel Ballinger
Somewhere in the WSDL there is a complexType or other element that is creating an Apex class for "Opportunity". As this conflicts with the native Opportuntiy type it gets rejected.

Are you able to share the WSDL in question?

I've made an alternative version of WSDL2Apex that should be able to handle this by adding a _x suffix to any conflicting names.
See http://www.fuseit.com/explorer.
Shawn KurugantiShawn Kuruganti
Daniel,

I am looking for help on a different question and I have yet to make a twitter account, so this is the best way I could reach out to you. Sorry in advance for cluttering this question with something unrelated, but you look like an experienced person who could help me out.

Could you look into this and see if you know why I am getting these blank records in my report? I am desparate to know the answer.

https://developer.salesforce.com/forums/?id=906F0000000kDVsIAM#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Trailhead&criteria=OPENQUESTIONS&id=9060G000000XjACQA0

It would be much appreciated!

Thanks,
Shawn