Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. <xs:import namespace="http://microsoft.com/wsdl/types/" xmlns:xs="#unknown" />

<xs:import namespace="http://microsoft.com/wsdl/types/" xmlns:xs="#unknown" />

Scheduled Pinned Locked Moved XML / XSL
xmldatabasewcfcomhardware
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Guinness4Strength
    wrote on last edited by
    #1

    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>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups