Help XML, Namespace, SOAP

Discussion in 'XML' started by Bryce, Sep 16, 2004.

  1. Bryce

    Bryce Guest

    I've no clue how to get further:
    I have the following xml schema:

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" >
    <xs:include schemaLocation="myschema.xsd" />
    <SOAP-ENV:Envelope>
    <SOAP-ENV:Body>
    <xs:element name="Test" type="testType"/>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    </xs:schema>

    then I have the schema (which is included in the above one, called
    "myschema.xsd")

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Test" type="TestType" />
    <xs:complexType name="TestType">
    <xs:sequence>
    <xs:element name="Name" type="xs:string" />
    <xs:element name="Location" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:schema>

    My instance looks like that:
    <?xml version='1.0' encoding='UTF-8' ?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <SOAP-ENV:Body>
    <Test>
    <Name>Clinton</Name>
    <Location>Whitehouse</Location>
    </Test>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Is this correct? is this a soap message? or just xml?
    When I use
    <xs:include schemaLocation="myschema.xsd" />
    where do I have to place the file for the schema "myschema.xsd"?
     
    Bryce, Sep 16, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Èý¹â
    Replies:
    1
    Views:
    578
    William F. Robertson, Jr.
    Jul 29, 2003
  2. Replies:
    0
    Views:
    5,141
  3. Rich

    Xml namespace in soap:envelope

    Rich, Jan 5, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    259
    Dilip Krishnan
    Jan 5, 2005
  4. Dan Fitzpatrick
    Replies:
    1
    Views:
    354
    NAKAMURA, Hiroshi
    Jul 16, 2005
  5. spacegoat
    Replies:
    2
    Views:
    174
    spacegoat
    Nov 6, 2005
Loading...

Share This Page