You need to sign in to do that
Don't have an account?
Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute
Hello Friends!!!
I am trying to Generate Apex Classes from WSDL file. But while parsing XML file getting below message.
Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute
Our WSDL contains below elements
<xs:attribute name="FactoryType" type="xs:QName"/>
<xs:attribute name="Id" type="xs:ID"/>
<xs:attribute name="Ref" type="xs:IDREF"/>
I referred Salesforce help site and w3school schemas referral sites and i found both supports attribute tag:
Salesforce help Site: http://www.salesforce.com/us/developer/docs/dbcom_apex250/Content/apex_callouts_wsdl2apex.htm
w3school XML Schema referral: http://www.w3.org/2001/XMLSchema
Please let me know if one knows about the same.
Thanks,
Pradip
While generating the class from WSDL it ask for parse name .
please provide the correct parsing name .. it creates a problem.try naming it same for all three or change only the first one and rest be same
http://boards.developerforce.com/t5/General-Development/Generating-Apex-Class-from-WSDL/m-p/693319#M103478
Regards,
Satish Kumar
Hi,
Those solutions doesnt works on it. This problem is specific becuase of this attribute element.
I am able to parse WSDL if i removed those attribute element from the file and also generates Apex classes.
But my concern is about attribute element. is there any more specific format it requires?
I am runing into same error when parsing wsdl The below error i am getting.
Error: Failed to parse wsdl: Unsupported Schema element found http://www.w3.org/2001/XMLSchema:attribute.
Can you help on this how you resolved. If you remove attributes and parse how does it affects the webservice call.