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
Rathna DeshmukhRathna Deshmukh 

Failed to parse wsdl: Unable to find element

Hi,

I am getting below error while generatign apex classes from enterprise wsdl.Can anyone let me know the solution.

error:Error: Failed to parse wsdl: Unable to find element for {http://xmlns.ieee.org/Internal/BOD/Customer/V2}Address

The element "Address" for which it is throwing does exist within wsdl.

Please advice.
James LoghryJames Loghry
It's hard to say without any further information.  Does your wsdl use the xsd:import clause by chance?  If so, wsdl 2 apex doesn't support it and you'll need to flatten out your wsdl.  Otherwise, it could be a bad wsdl or missing namespace for the Address element.  Have you tried importing it into SoapUI to see if it generates the requests properly (http://soapui.org)?