[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: SOAP and XML Schema validation?

  • From: mark hu <mark@f...>
  • To: David Orchard <orchard@p...>, xml-dev@x...
  • Date: Tue, 15 Aug 2000 11:19:50 -0400

soap schema
Hi, David:
    Here's some issues I think u can check out:

SOAP 1.1 ==>> The absence of the SOAP mustUnderstand attribute is
semantically equivalent to its presence with the value "0".
...... This attribute MUST appear in the instance in order to be effective
...... and since u import a schema and use element instance, looks like u
need to put this attribute back and about changing from uri-reference to
uriReference to enable xmlspy, I do not think it'll work - and I'll try the
same thing and see how it goes, cheers


"life is ..."
----- Original Message -----
From: David Orchard <orchard@p...>
To: <xml-dev@x...>
Sent: Monday, August 14, 2000 6:07 PM
Subject: SOAP and XML Schema validation?

> Apologies if this question has been answered before, an answer by
> would be as good as by value :-)
> My question is about the use of Schema validation of multiple namespaces,
> particular SOAP content on a server.  I'm trying to create an extension on
> the SOAP Body element for my particular schema.  Problem is, using
> base="tns:Body" for the complexType I'm creating doesn't seem to work.
> I have created an schema for the getLastTradePrice SOAP example, and I
> to extend the SOAP Body to specify my content.
> I tweaked the SOAP schema at http://schemas.xmlsoap.org/soap/envelope/ so
> that it would work in xmlspy, particularly: 1) change uri-reference to
> uriReference; 2) removed the default value for mustUnderstand
> The schema I created is:
> <schema targetNamespace="Some-URI"
> xmlns="http://www.w3.org/1999/XMLSchema"
> xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:m="Some-URI">
> <import schemaLocation="../SOAPSchema.xsd"
> namespace="http://schemas.xmlsoap.org/soap/envelope/"/>
> <element name="GetLastTradePrice" type="m:GetLastTradePriceType"/>
> <complexType name="GetLastTradePriceType" derivedBy="extension"
> base="tns:Body" >
> <element name="symbol" type="string"/>
> </complexType>
> </schema>
> XML Spy says undefined value for 'base' encountered, yet tns:Body sure is
> defined.
> My guess - to no surprise - is that it's a namespace issue, and I've
> some declaration.  I think that the import of the SOAP schema should keep
> the  full Qname for the soap elements and attributes.  I tried removing
> import/namespace attribute, removing the xmlns:tns attribute, and adding
> xmlns:tns attribute to the complexType declaration.
> My 2nd guess is that it's a bug in xmlspy.
> Any help?
> Dave Orchard
> XML Architect
> Jamcracker, Inc.
> 935 Stewart Dr.
> Sunnyvale, CA 94086
> p: 408.830.1886
> f: 408.328.0936
> Named to Red Herring's list of 100 Most Important Companies:
> www.redherring.com/mag/issue79/herring100/jamcracker.html
> Named to Fortune's list of Cool Companies 2000:
> http://www.fortune.com/fortune/cool/coo.html


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.