<xs:import namespace="http://microsoft.com/wsdl/types/" xmlns:xs="#unknown" />
-
I'm createing an XSD file which will be an embedded resource in an assembly. I'm attempting to import the MS WSDL types schema so that I can provide a defintion for char datatype, but every way I try and add the namespace and import the schema I get resolution errors. I'm VERY new to XSDs and have some working knowledge of XML so I'm not 100% positive I can do what I want to here, but this is the basic pattern I have seen in many WSDLs for adding support for char datatypes. Any answers or shoves in the right direction would be appreciated. Below is a sample format for my XSD:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xs0="http://microsoft.com/wsdl/types/"<xs:import namespace="http://microsoft.com/wsdl/types/"/> <!--cannot resolve "http://microsoft.com/wsdl/types/" error here--> <xs:complexType name="MyComplexType"> <xs:sequence> <xs:element name="Value" nillable="true"> <xs:complexType> <xs:choice> <xs:element name="boolean" type="xs:boolean" /> <xs:element name="byte" type="xs:byte" /> <xs:element name="unsignedByte" type="xs:unsignedByte" /> <xs:element name="short" type="xs:short" /> <xs:element name="unsignedShort" type="xs:unsignedShort" /> <xs:element name="int" type="xs:int" /> <xs:element name="unsignedInt" type="xs:unsignedInt" /> <xs:element name="long" type="xs:long" /> <xs:element name="unsignedLong" type="xs:unsignedLong" /> <xs:element name="float" type="xs:float" /> <xs:element name="double" type="xs:double" /> <xs:element name="decimal" type="xs:decimal" /> <xs:element name="dateTime" type="xs:dateTime" /> <xs:element name="string" type="xs:string" /> <xs:element name="char" type="xs0:char" /> <!--Type http://microsoft.com/wasdl/types/:char is not declared error here --> </xs:choice> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType>
</xs:schema>