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

Re: Famous web services with apparent serious XML schemaerrors


reiner westermeier
> What was intended was something functionally equivalent to this
> <xsd:complexType name="AuthorArray">
>   <xsd:sequence>
>      <xsd:element name="Author" type="xsd:string"  minOccurs="0"
> maxOccurs="unbounded"/>
>   </xsd:sequence>
> </xsd:complexContent>
> apparently using the soap encodings to get higher efficiency by having
> attributes that can be parsed to determined the number of items in the array
> and their type.

Recall that SOAP predates XML Schema.

> 3.  For some reason, possibly to satisfy the caprices of some early soap
> tools, the services return results that look like this:
> <Authors SOAP-ENC:arrayType="xsd:string[2]"
> xsi:type="SOAP-ENC:Array">
>   <Author xsi:type="xsd:string">Reiner Westermeier</Author>
>   <Author xsi:type="xsd:string">Tom Naven</Author>
> </Authors>
> Xerces correctly rejects these also, since the declared type of Authors is
> derived from the xsi:type, which is backwards and illegal.  (Notice that the
> soap-enc:arrayType is a typo -- should be "tns:Author[2]").

That looks like self-describe SOAP 1.1 array to me.  Declaring the type
via xsi:type allows interpretation without a schema.  And you're wrong
about the tns:Author[2].

Suggest you read the SOAP 1.1 spec, not the 1.2 specs.
        /r$


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.