Hi,
While generating Apex code from wsdl provided by Amazon (For S3) I got the above mentioned error. Below is a snippet from WSDL file.
<xsd:schema
elementFormDefault="qualified"
targetNamespace="http://s3.amazonaws.com/doc/2006-03-01/">
<xsd:include schemaLocation="AmazonS3.xsd"/>
</xsd:schema>
To Resolve the error I downloaded XSD file from Amzon only and replaced the content of tag <xsd:include> with the content of the XSD file, and I was able to generate the Apex code file.
While generating Apex code from wsdl provided by Amazon (For S3) I got the above mentioned error. Below is a snippet from WSDL file.
<xsd:schema
elementFormDefault="qualified"
targetNamespace="http://s3.amazonaws.com/doc/2006-03-01/">
<xsd:include schemaLocation="AmazonS3.xsd"/>
</xsd:schema>
To Resolve the error I downloaded XSD file from Amzon only and replaced the content of tag <xsd:include> with the content of the XSD file, and I was able to generate the Apex code file.