+ Start a Discussion
Manoj.tManoj.t 

Importing .NET WSDL file but showing error Failed to parse WSDL

I am trying to import my .net wsdl file into apex class and useing gererate from WSDL but it gives me Error Failed to parse wsdl: Unable to find schema for element; {http://www.w3.org/2001/XMLSchema}schema So Please help me how can i remove this error .

Best Answer chosen by Admin (Salesforce Developers) 
Pradeep_NavatarPradeep_Navatar

Make sure you have read the best practices for importing WSDL in Apex code Developer's guide documentation.

 

Not all WSDL features are supported in the WSDL2Apex. The XML Schema in your WSDL doc uses a feature of schema called attributeGroups and in my opinion these are not supported by WSDL2Apex.

 

Hope this helps.

All Answers

Pradeep_NavatarPradeep_Navatar

Make sure you have read the best practices for importing WSDL in Apex code Developer's guide documentation.

 

Not all WSDL features are supported in the WSDL2Apex. The XML Schema in your WSDL doc uses a feature of schema called attributeGroups and in my opinion these are not supported by WSDL2Apex.

 

Hope this helps.

This was selected as the best answer
Manoj.tManoj.t

Thanks a lot.

ServiceSoap12 is not supported by apex class so I removed it and now it's working fine.