RE: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread Derek
Title: Message



Debasish:
 
Having 
WSDL2Java simply produce incorrect code when errors like this happen is not 
really acceptable. If something is wrong, WSDL2Java should tell the user so, not 
just go blindly forward making unjustified assumptions about what the user 
really meant ("He didn't tell me what he wanted, so he must have just wanted an 
OMElement!") or otherwise trying unsuccessfully to fix the user's 
mistakes.
 

Please 
file a JIRA for this issue, providing your WSDL and schemas, and stating that 
WSDL2Java did not detect that you referenced a nonexistent schema component, and 
did not reject your WSDL by providing a reasonable error message 
telling you of your problem and what to do about it, as it should have. Note 
that this bug seems quite reminiscent of https://issues.apache.org/jira/browse/AXIS2-845, 
and may be related.
 
Thanks.
Derek

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
  Sent: Tuesday, August 15, 2006 10:55 AMTo: 
  axis-user@ws.apache.orgCc: 
  axis-user@ws.apache.orgSubject: Re: Axis2: Code Generator BUG? - 
  Create list/Array of objects - IMPORTANTPerfect!!! Thanks a 
  lot.___Debasish Dutta 
  RoyNITASPh: 617-871-3033 
  


  
  "Anne Thomas Manes" 
<[EMAIL PROTECTED]> 
08/15/2006 01:33 PM Please respond to axis-user 
                  To:     
   axis-user@ws.apache.org         cc:        (bcc: 
Debasish DuttaRoy/X/PH/Novartis)         Subject:       
 Re: Axis2: Code Generator BUG? - Create list/Array of objects - 
IMPORTANTValidation of your WSDL produces this warning:There is no schema component of the name 
  [requestRA] defined in the WSDL either via imported or embedded 
  schema.This error is caused 
  by the definition of the "ralist" element, which is the last child element of 
  the "requestDetails" element. It is defined as:  Two problems:1. you must namespace 
  qualify the referenced type. 2. "requestRA" must be defined as a type 
  rather than an element.The "raList" definition should 
  be: 
  And the "requestRA" 
  definition should be:  
                 ...  
   Anne On 8/15/06, [EMAIL PROTECTED] 
  <[EMAIL PROTECTED]> wrote: Hi Ajith I also believe the same. There is something wrong 
  in the schema part of the wsdl file. I am attaching the wsdl file for your 
  reference. There is a requestDetails object and as a member 
  variable of the request details object I want an array of RequestRA 
  object. At line 84 I have defined the element of raList, 
  which I want as an array/List of RequestRA/Object and then at line 90 is the 
  requestRA definition. 
  Right now the RequestRA class is 
  getting created but inside requestDetails raList is an array of 
  OMElement. ___Debasish 
  Dutta RoyNITASPh: 617-871-3033 
  


  
  "Ajith Ranabahu" 
<[EMAIL PROTECTED] > 
08/15/2006 09:08 AM Please respond to axis-user 
          
       To: 
       axis-user@ws.apache.org        cc:       
 (bcc: Debasish DuttaRoy/X/PH/Novartis)        Subject:       
 Re: Axis2: Code Generator BUG? - Create list/Array of objects - 
IMPORTANTHi,If your 
  schema declaration is proper then it should generate an arrayof the 
  correct type. If you are still seeing OMElements then therecould be a 
  problem with your schemaAjithOn 8/15/06, Debasish Dutta Roy 
  <[EMAIL PROTECTED]> wrote:> I have seen that example on the net. But my 
  list/array is of another object.> Not a native data type.> If I 
  do a complextype then this object is not created.>> I any case, 
  it creates an array of OMElement[] and not an Object[].>> As for 
  creating list vs array, i think it would depend on the tool. If it> can 
  create one you can get a list.>> I am using the nightly build of 
  08/07/2006. Anybody has got any idea???>> It is a simple case, I 
  have a manager Class which has member of array of> Employee objects who 
  are subordinates to him.>> On 8/11/06, Ajith Ranabahu 
  <[EMAIL PROTECTED]> wrote:> > Hi,> > As far as generating code is 
  concerned you *cannot* generate a list> > field, even if you have a 
  the maxOccurs set to unbound! it is always> > an array!> > 
  As for this schema it is not right. What you should be doing is the> 
  following> >> > > >> > 
  > >         
          > >     
                      
  > type="xsd:string"/>> >   
                > 
  > > > > >> >> > Ajith> > On 8/11/06, 
  [EMAIL PROTECTED]> > < [EMAIL PROTECTED]> wrote:> > >> > > 
  All> > > I need an object which contains a member variable, which 
  is list of> another> > > object.> > >> 
  > > Class A {> > > //list of object B> > > 
  private java.util.List bList;> > > }> > >> 
  > > Class B {> > > private String str;> > > 
  }> > >> > > How do I represent this in WSDL. I am 
  using WSDL2Java commandline. Since

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread debasish . duttaroy

Perfect!!!

Thanks a lot.
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Anne Thomas Manes" <[EMAIL PROTECTED]>
08/15/2006 01:33 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT


Validation of your WSDL produces this warning:

There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema.

This error is caused by the definition of the "ralist" element, which is the last child element of the "requestDetails" element. It is defined as: 



Two problems:
1. you must namespace qualify the referenced type. 
2. "requestRA" must be defined as a type rather than an element.

The "raList" definition should be:

 

And the "requestRA" definition should be:


    
        
        ...
    


Anne 

On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Ajith 
I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. 

There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. 

At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. 

Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. 



___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033 





"Ajith Ranabahu" <[EMAIL PROTECTED] > 
08/15/2006 09:08 AM 
Please respond to axis-user 
        
        To:        axis-user@ws.apache.org 
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis) 
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT



Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:
> I have seen that example on the net. But my list/array is of another object.
> Not a native data type.
> If I do a complextype then this object is not created.
>
> I any case, it creates an array of OMElement[] and not an Object[].
>
> As for creating list vs array, i think it would depend on the tool. If it
> can create one you can get a list.
>
> I am using the nightly build of 08/07/2006. Anybody has got any idea???
>
> It is a simple case, I have a manager Class which has member of array of
> Employee objects who are subordinates to him.
>
> On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > As far as generating code is concerned you *cannot* generate a list
> > field, even if you have a the maxOccurs set to unbound! it is always
> > an array!
> > As for this schema it is not right. What you should be doing is the
> following
> >
> > 
> >
> > 
> >                 
> >                         
> type="xsd:string"/>
> >                 
> > 
> >
> >
> >
> > Ajith
> > On 8/11/06, [EMAIL PROTECTED]
> > < [EMAIL PROTECTED]> wrote:
> > >
> > > All
> > > I need an object which contains a member variable, which is list of
> another
> > > object.
> > >
> > > Class A {
> > > //list of object B
> > > private java.util.List bList;
> > > }
> > >
> > > Class B {
> > > private String str;
> > > }
> > >
> > > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
> I
> > > am using the tool I expect to get a java.util.List
> > >
> > > This is how my current wsdl looks...
> > >
> > > 
> > >
> > > 
> > >         
> > >                 
> > >                         
> > >                 
> > >                 
> > > 
> > >
> > > But when I generate the code inside class A, I get
> > >
> > > protected org.apache.axiom.om.OMElement[] localBList ;
> > >
> > > why an array, and why OMElement?
> > >
> > > Can you tell me what I am missing.
> > > ___
> > > Debasish Dutta Roy
> > > NITAS
> > > Ph: 617-871-3033
> > > _
> > >
> > > CONFIDENTIALITY NOTICE
> > &

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread Anne Thomas Manes
Validation of your WSDL produces this warning:There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema.This error is caused by the definition of the "ralist" element, which is the last child element of the "requestDetails" element. It is defined as:
Two problems:1. you must namespace qualify the referenced type.
2. "requestRA" must be defined as a type rather than an element.The "raList" definition should be: 
And the "requestRA" definition should be:            
        ...    Anne On 8/15/06, [EMAIL PROTECTED]
 <[EMAIL PROTECTED]> wrote:

Hi Ajith
I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference.

There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object.

At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition.

Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement.


___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Ajith Ranabahu" <[EMAIL PROTECTED]
>
08/15/2006 09:08 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT



Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:
> I have seen that example on the net. But my list/array is of another object.
> Not a native data type.
> If I do a complextype then this object is not created.
>
> I any case, it creates an array of OMElement[] and not an Object[].
>
> As for creating list vs array, i think it would depend on the tool. If it
> can create one you can get a list.
>
> I am using the nightly build of 08/07/2006. Anybody has got any idea???
>
> It is a simple case, I have a manager Class which has member of array of
> Employee objects who are subordinates to him.
>
> On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > As far as generating code is concerned you *cannot* generate a list
> > field, even if you have a the maxOccurs set to unbound! it is always
> > an array!
> > As for this schema it is not right. What you should be doing is the
> following
> >
> > 
> >
> > 
> >                 
> >                         
> type="xsd:string"/>
> >                 
> > 
> >
> >
> >
> > Ajith
> > On 8/11/06, [EMAIL PROTECTED]
> > < [EMAIL PROTECTED]> wrote:
> > >
> > > All
> > > I need an object which contains a member variable, which is list of
> another
> > > object.
> > >
> > > Class A {
> > > //list of object B
> > > private java.util.List bList;
> > > }
> > >
> > > Class B {
> > > private String str;
> > > }
> > >
> > > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
> I
> > > am using the tool I expect to get a java.util.List
> > >
> > > This is how my current wsdl looks...
> > >
> > > 
> > >
> > > 
> > >         
> > >                 
> > >                         
> > >                 
> > >                 
> > > 
> > >
> > > But when I generate the code inside class A, I get
> > >
> > > protected org.apache.axiom.om.OMElement[] localBList ;
> > >
> > > why an array, and why OMElement?
> > >
> > > Can you tell me what I am missing.
> > > ___
> > > Debasish Dutta Roy
> > > NITAS
> > > Ph: 617-871-3033
> > > _
> > >
> > > CONFIDENTIALITY NOTICE
> > >
> > > The information contained in this e-mail message is intended only for
> the
> > > exclusive use of the individual or entity named above and may contain
> > > information that is privileged, confidential or exempt from disclosure
> under
> > > applicable law. If the reader of this message is not the intended
> recipient,
> > > or the employee or agent responsible for delivery of the message to the
> > &g

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread debasish . duttaroy

Hi Ajith
I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference.

There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object.

At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition.

Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement.


___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Ajith Ranabahu" <[EMAIL PROTECTED]>
08/15/2006 09:08 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT


Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:
> I have seen that example on the net. But my list/array is of another object.
> Not a native data type.
> If I do a complextype then this object is not created.
>
> I any case, it creates an array of OMElement[] and not an Object[].
>
> As for creating list vs array, i think it would depend on the tool. If it
> can create one you can get a list.
>
> I am using the nightly build of 08/07/2006. Anybody has got any idea???
>
> It is a simple case, I have a manager Class which has member of array of
> Employee objects who are subordinates to him.
>
> On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > As far as generating code is concerned you *cannot* generate a list
> > field, even if you have a the maxOccurs set to unbound! it is always
> > an array!
> > As for this schema it is not right. What you should be doing is the
> following
> >
> > 
> >
> > 
> >                 
> >                         
> type="xsd:string"/>
> >                 
> > 
> >
> >
> >
> > Ajith
> > On 8/11/06, [EMAIL PROTECTED]
> > < [EMAIL PROTECTED]> wrote:
> > >
> > > All
> > > I need an object which contains a member variable, which is list of
> another
> > > object.
> > >
> > > Class A {
> > > //list of object B
> > > private java.util.List bList;
> > > }
> > >
> > > Class B {
> > > private String str;
> > > }
> > >
> > > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
> I
> > > am using the tool I expect to get a java.util.List
> > >
> > > This is how my current wsdl looks...
> > >
> > > 
> > >
> > > 
> > >         
> > >                 
> > >                         
> > >                 
> > >                 
> > > 
> > >
> > > But when I generate the code inside class A, I get
> > >
> > > protected org.apache.axiom.om.OMElement[] localBList ;
> > >
> > > why an array, and why OMElement?
> > >
> > > Can you tell me what I am missing.
> > > ___
> > > Debasish Dutta Roy
> > > NITAS
> > > Ph: 617-871-3033
> > > _
> > >
> > > CONFIDENTIALITY NOTICE
> > >
> > > The information contained in this e-mail message is intended only for
> the
> > > exclusive use of the individual or entity named above and may contain
> > > information that is privileged, confidential or exempt from disclosure
> under
> > > applicable law. If the reader of this message is not the intended
> recipient,
> > > or the employee or agent responsible for delivery of the message to the
> > > intended recipient, you are hereby notified that any dissemination,
> > > distribution or copying of this communication is strictly prohibited. If
> you
> > > have received this communication in error, please notify the sender
> > > immediately by e-mail and delete the material from any computer.  Thank
> you.
> > >
> >
> >
> > --
> > Ajith Ranabahu
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
&

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread Ajith Ranabahu

Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:

I have seen that example on the net. But my list/array is of another object.
Not a native data type.
If I do a complextype then this object is not created.

I any case, it creates an array of OMElement[] and not an Object[].

As for creating list vs array, i think it would depend on the tool. If it
can create one you can get a list.

I am using the nightly build of 08/07/2006. Anybody has got any idea???

It is a simple case, I have a manager Class which has member of array of
Employee objects who are subordinates to him.

On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> Hi,
> As far as generating code is concerned you *cannot* generate a list
> field, even if you have a the maxOccurs set to unbound! it is always
> an array!
> As for this schema it is not right. What you should be doing is the
following
>
> 
>
> 
> 
> 
> 
> 
>
>
>
> Ajith
> On 8/11/06, [EMAIL PROTECTED]
> < [EMAIL PROTECTED]> wrote:
> >
> > All
> > I need an object which contains a member variable, which is list of
another
> > object.
> >
> > Class A {
> > //list of object B
> > private java.util.List bList;
> > }
> >
> > Class B {
> > private String str;
> > }
> >
> > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
I
> > am using the tool I expect to get a java.util.List
> >
> > This is how my current wsdl looks...
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > But when I generate the code inside class A, I get
> >
> > protected org.apache.axiom.om.OMElement[] localBList ;
> >
> > why an array, and why OMElement?
> >
> > Can you tell me what I am missing.
> > ___
> > Debasish Dutta Roy
> > NITAS
> > Ph: 617-871-3033
> > _
> >
> > CONFIDENTIALITY NOTICE
> >
> > The information contained in this e-mail message is intended only for
the
> > exclusive use of the individual or entity named above and may contain
> > information that is privileged, confidential or exempt from disclosure
under
> > applicable law. If the reader of this message is not the intended
recipient,
> > or the employee or agent responsible for delivery of the message to the
> > intended recipient, you are hereby notified that any dissemination,
> > distribution or copying of this communication is strictly prohibited. If
you
> > have received this communication in error, please notify the sender
> > immediately by e-mail and delete the material from any computer.  Thank
you.
> >
>
>
> --
> Ajith Ranabahu
>
>
-
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Ajith Ranabahu

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



Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread Debasish Dutta Roy
I have seen that example on the net. But my list/array is of another object. Not a native data type.If I do a complextype then this object is not created.I any case, it creates an array of OMElement[] and not an Object[].
As for creating list vs array, i think it would depend on the tool. If it can create one you can get a list.I am using the nightly build of 08/07/2006. Anybody has got any idea???It is a simple case, I have a manager Class which has member of array of Employee objects who are subordinates to him.
On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
Hi,As far as generating code is concerned you *cannot* generate a listfield, even if you have a the maxOccurs set to unbound! it is alwaysan array!As for this schema it is not right. What you should be doing is the following

AjithOn 8/11/06, [EMAIL PROTECTED]<
[EMAIL PROTECTED]> wrote:>> All> I need an object which contains a member variable, which is list of another> object.>> Class A {> //list of object B
> private java.util.List bList;> }>> Class B {> private String str;> }>> How do I represent this in WSDL. I am using WSDL2Java commandline. Since I> am using the tool I expect to get a 
java.util.List>> This is how my current wsdl looks...>> >> 
> > > > 
> > >> But when I generate the code inside class A, I get>> protected org.apache.axiom.om.OMElement[] localBList ;>
> why an array, and why OMElement?>> Can you tell me what I am missing.> ___> Debasish Dutta Roy> NITAS> Ph: 617-871-3033
> _>> CONFIDENTIALITY NOTICE>> The information contained in this e-mail message is intended only for the> exclusive use of the individual or entity named above and may contain
> information that is privileged, confidential or exempt from disclosure under> applicable law. If the reader of this message is not the intended recipient,> or the employee or agent responsible for delivery of the message to the
> intended recipient, you are hereby notified that any dissemination,> distribution or copying of this communication is strictly prohibited. If you> have received this communication in error, please notify the sender
> immediately by e-mail and delete the material from any computer.  Thank you.>--Ajith Ranabahu-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]