The xsd:any (there's only one) will map to a single OMElement -- which
may in turn contain anything. Therefore, the xsd:any is the last
element (only element) in your sequence).

Anne

On 5/2/07, no spam <[EMAIL PROTECTED]> wrote:

ok, but this seems to be thinking of an xsd:any element as the last item in
a sequence, for extensibility purposes, most likely.  That's not the case
here.

In the WSDL case I sent earlier, Microsoft has kindly made "ViewFields"
essentially nothing BUT a sequence of xsd:any.   It's like a C interface
where everything is a void *.

Excerpt:

           <s:element minOccurs="0" maxOccurs="1" name="viewFields">
              <s:complexType mixed="true">
                <s:sequence>
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>

So I don't want just one "extra element", but N of them.   (or to be more
precise, there IS just one extra, but inside it is a sequence of a whole
bunch of them.)

Bob


----- Original Message ----
From: Davanum Srinivas <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Tuesday, May 1, 2007 6:03:59 PM
Subject: Re: what is "extraElement"?

if your schema has xsd:any or similar construct, we generate code for
attaching extra elements. You are supposed to construct OMElement's
and call the setter for sending data and on the other side you can use
the getter for the extra element to get the extra data corresponding
to the schema construct.

-- dims

On 5/1/07, no spam <[EMAIL PROTECTED]> wrote:
>
> ok, here is a simpler question than my previous ones:
>
>  what is the purpose of the "extraElement" in all the generated Java code?
> I have not been able to find Word One of documentation anywhere on this.
I
> did get a "extra element cannot be null" exception in some code that I ran
> as an experiment, so obviously it must do something.
>
> Bob
>
>  ________________________________
> Ahhh...imagining that irresistible "new car" smell?
>  Check out new cars at Yahoo! Autos.


--
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 ________________________________
Ahhh...imagining that irresistible "new car" smell?
 Check out new cars at Yahoo! Autos.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to