+ Start a Discussion
N@niN@ni 

using metadata api in apex???

Hi,

           I have created metadataapi from Setup--->Develop--->Api---->Genarate Metadataapi, and i have seved in one wsdl file, the problem is while genarating apex class from wsdl it showing

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

Could You please help me, It is very Urgent.................
Satish_SFDCSatish_SFDC
If i understand it correctly, you are trying to generate an Apex class from the Metadata WSDL you downloaded through Salesforce.
I dont think this will work. 
If you want to call the metadata api through Apex classes, you should create your own metadata wrapper and use that class.

Or you could also check this link if it helps.
https://github.com/financialforcedev/apex-mdapi

Regards,
Satish Kumar