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
Shri RajShri Raj 

Unsupported schema type: {http://www.w3.org/2001/XMLSchema}String

I'm trying to generate from WSDL. Once the WSDL is parsed and before Generation the Apex code, I'm getting the following error. Please guide.

Unsupported schema type: {http://www.w3.org/2001/XMLSchema}String

Earlier i got this error.. 
Unsupported schema type: {http://www.w3.org/2001/XMLSchema}Anytype

Based on this post i have made the following changes. 
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008ylMIAQ


Regards,
Shri

Best Answer chosen by Shri Raj
Denis VakulishinDenis Vakulishin
HI,
Are you replaced with "String" or "string"? 
I'm asking because xml is case sensetive format and it could cause the error.

All Answers

Denis VakulishinDenis Vakulishin
HI,
Are you replaced with "String" or "string"? 
I'm asking because xml is case sensetive format and it could cause the error.

This was selected as the best answer
Shri RajShri Raj
Ohh thats a great Question. Let me check and get back.Thank you!
Shri RajShri Raj

Hello Denis, 

Actually i replaced in both the formats. I'm not sure which one is right. Here is the example. 

<element name="NewValue" nillable="true" minOccurs="0" type="xsd:string"/>
 <element name="OldValue" nillable="true" minOccurs="0" type="xsd:String"/>

Shri RajShri Raj
Hello Denis.

Lowercase is the correct format. 

<element name="NewValue" nillable="true" minOccurs="0" type="xsd:string"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:string"/>

Thanks for your help. Great learning.