Re: what is "extraElement"?

2007-05-03 Thread Amila Suriarachchi

use minOccures and maxOccurs


On 5/3/07, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:


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:
>
>
>   
> 
>   
> 
>   
> 
>
> 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]





--
Amila Suriarachchi,
WSO2 Inc.


Re: what is "extraElement"?

2007-05-02 Thread Anne Thomas Manes

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:

   
  

  

  


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]



Re: what is "extraElement"?

2007-05-01 Thread no spam
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:

   
  

  

  


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]







__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: what is "extraElement"?

2007-05-01 Thread Davanum Srinivas

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]



what is "extraElement"?

2007-05-01 Thread no spam
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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com