[SalesForce] Metadata API WSDL Import errror

I'm trying to import metadata wsdl in my dev org, i'm getting following error any help?

Apex Generation Failed
Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType

Also I'm looking to create Remote Access setting from Apex, so if there is any other option to do it other than metadata api, let me know as well.

Thanks

Best Answer

anyType is not supported by wsdl2apex.

See this page for a list of supported xml schema types: https://developer.salesforce.com/page/Apex_Web_Services_and_Callouts (almost at the bottom)

Is it an option to replace the anyType by a supported type? Or e.g. a String?

Related Topic