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