users@jax-rpc.java.net

Re: RI bug?

From: Simon Horrell <simonh_at_develop.com>
Date: Thu, 23 May 2002 19:07:24 +0100

Yes, if you look at the schema document at
http://schemas.xmlsoap.org/soap/envelope/, the Envelope type cannot contain
attributes from the http://schemas.xmlsoap.org/soap/envelope/ namespace.
However the SOAP 1.1 spec (e.g. http://www.w3.org/TR/SOAP/#_Toc478383490)
does so in its examples! These examples have been corrected in the SOAP 1.2
spec (e.g. http://www.w3.org/TR/2001/WD-soap12-part2-20011217/#N24F) .
Personally, I would imagine that the schema would take preference over the
informal examples. It wouldn't hurt to move it down into the header/body
blocks as it is only there that it has any meaning.
Si.

----- Original Message -----
From: "Roberto Chinnici" <roberto.chinnici_at_sun.com>
To: "Simon Horrell" <simonh_at_develop.com>
Cc: <JAXRPC-INTEREST_at_JAVA.SUN.COM>
Sent: Thursday, May 23, 2002 6:21 PM
Subject: Re: RI bug?


> Simon,
>
> I'm not sure I understand the problem.
>
> Let's take this SOAP envelope produced by the RI as an example:
>
> 1: <env:Envelope
> 2: xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
> 3: xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> 4: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 5: xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
> 6: xmlns:ns0="http://helloservice.org/types"
> 7: env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> 8: <env:Body>
> 9: <ans1:doit xmlns:ans1="http://helloservice.org/wsdl"/>
> 10: </env:Body>
> 11: </env:Envelope>
>
> What is wrong with it?
>
> It seems to me that the SOAP messages we produce are in accordance
> with the SOAP 1.1 specification. Perhaps the issue is with the published
> SOAP 1.1 schema document?
>
> Roberto
>
> --
> Roberto Chinnici
> Java and XML Software
> Sun Microsystems, Inc.
>
>
> Simon Horrell wrote:
>
> > The SOAP messages generated by the RI decorate the
> > {http://xmlschemas.xmlsoap.org/soap/envelope/}Envelope element with the
> > {http://xmlschemas.xmlsoap.org/soap/envelope/}encodingStyle attribute.
> > According to the schema type definition associated with
> > {http://xmlschemas.xmlsoap.org/soap/envelope/}Envelope (at
> > http://schemas.xmlsoap.org/soap/envelope/), I believe this is not
correct.
> > Si.
>