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
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.