+ Start a Discussion
Aurélien.LavalAurélien.Laval 

Apex Generation Failed Unable to find schema for element;

Hello,

 

I try to generate Apex classes from WSDL file but I get this error : Apex Generation Failed Unable to find schema for element; {http://tempuri.org/}GetConsumerOrdersResponse

 

I don't understand why but I think the problem is about namespace?

 

This is my WSDL file : http://www.petit-fichier.fr/2013/11/14/test3/ (too large for this forum)

 

 

Thanks to people who will help me.

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

the wsdl:message element says that the element is tns:GetConsumerOrdersResponse where tns is aliased to http://tempuri.org but the GetConsumerOrdersResponse is defined in a schema with a targetNamespace of http://schemas.datacontract.org/2004/07/FujiTTModel You need to fix the wsdl:message elements to use the correct namespace alias (you'll need to add a new alias for this at the root element level).

All Answers

SuperfellSuperfell

the wsdl:message element says that the element is tns:GetConsumerOrdersResponse where tns is aliased to http://tempuri.org but the GetConsumerOrdersResponse is defined in a schema with a targetNamespace of http://schemas.datacontract.org/2004/07/FujiTTModel You need to fix the wsdl:message elements to use the correct namespace alias (you'll need to add a new alias for this at the root element level).

This was selected as the best answer
Aurélien.LavalAurélien.Laval

I resolved my problem? i've used only one namespace (tempuri.org) and it works, Salesforce accepted my wsdl file.

 

Thank SimonF