You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by csanders <cs...@hoovers.com> on 2007/10/23 22:13:42 UTC
nested complex types
Hi all :).
I'm having some trouble getting nested complex types to work correctly.
I'm noticing that for members of the generated class, instead of using
the generated Wrapper class ( which it does generate ) , it uses
OMElement.
When I run wsdl2java I get several warnings about missing types, for
example :
[WARN] Type {urn:beagle}CompanyBasicInfo missing!
I noticed that the items that don't give me warnings are declared like
this:
<complexType name="UsUkSICMapRecord">
<sequence>
<element name="us-sic-code" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<element name="uk-sic-code" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
</sequence>
</complexType>
and all the ones that it complains are missing are declared like:
<element name="CompanyBasicInfo">
<complexType>
<sequence>
<element name="gid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="duns" type="xsd:string" minOccurs="1"
<element name="misc" type="ns:CompanyRecord" minOccurs="1"
maxOccurs="1"/>
...
</sequence>
</complexType>
</element>
The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
and java1.6 on ubuntu amd64.
Thanks!
Charlie
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: nested complex types
Posted by Amila Suriarachchi <am...@gmail.com>.
may be a problem with the adb schema compiler.
can you send your wsdl and the schema files?
Amila.
On 10/24/07, csanders <cs...@hoovers.com> wrote:
>
> Ok thanks for your response.
>
> On Wed, 2007-10-24 at 15:41 +0100, Gudla, Natraj (GE Money, consultant)
> wrote:
> > I have used wsdl2java with axis2 1.2. It might be worth having a close
> look at your wsdl verifying your element and type references.
> >
> > I am really busy with my work otherwise i would have looked at your
> wsdl.
> >
> > -----Original Message-----
> > From: csanders [mailto:csanders@hoovers.com]
> > Sent: 24 October 2007 15:29
> > To: axis-user@ws.apache.org
> > Subject: RE: nested complex types
> >
> >
> > Both of those changes made wsdl2java segfault with antlr errors. Did
> > you do this using axis2 or axis1 ?
> >
> > It seems their must be something simple I'm doing wrong, it can't be
> > this hard to get it to generate code that works.
> >
> >
> > On Wed, 2007-10-24 at 08:42 +0100, Gudla, Natraj (GE Money, consultant)
> > wrote:
> > > Hi,
> > >
> > > It depends on where and how you are refer to "CompanyBasicInfo". From
> your code i understand this is an element in the first place having a
> complex type. So in your wsdl this should be included as a ref="" <element
> name="" ref="CompanyBasicInfo">. You might must be having your current as
> <element name="" type="CompanyBasicInfo"/>.
> > >
> > > When i faced this, i solved it as the above. CompanyBasicInfo is an
> element and you refer it as a type in wsdl, hence the error "Type is
> missing". Either change your schema to make CompanyBasicInfo as an
> independant type OR change your wsdl to create a reference.
> > >
> > > hope this helps.
> > >
> > > Cheers
> > > Natraj.
> > >
> > > -----Original Message-----
> > > From: csanders [mailto:csanders@hoovers.com]
> > > Sent: 23 October 2007 21:14
> > > To: axis-user@ws.apache.org
> > > Subject: nested complex types
> > >
> > >
> > > Hi all :).
> > >
> > > I'm having some trouble getting nested complex types to work
> correctly.
> > > I'm noticing that for members of the generated class, instead of using
> > > the generated Wrapper class ( which it does generate ) , it uses
> > > OMElement.
> > >
> > > When I run wsdl2java I get several warnings about missing types, for
> > > example :
> > >
> > > [WARN] Type {urn:beagle}CompanyBasicInfo missing!
> > >
> > > I noticed that the items that don't give me warnings are declared like
> > > this:
> > >
> > > <complexType name="UsUkSICMapRecord">
> > > <sequence>
> > > <element name="us-sic-code" type="xsd:string" minOccurs="1"
> > > maxOccurs="1"/>
> > > <element name="uk-sic-code" type="xsd:string" minOccurs="1"
> > > maxOccurs="1"/>
> > > </sequence>
> > > </complexType>
> > >
> > > and all the ones that it complains are missing are declared like:
> > >
> > > <element name="CompanyBasicInfo">
> > > <complexType>
> > > <sequence>
> > > <element name="gid" type="xsd:string" minOccurs="1"
> maxOccurs="1"/>
> > > <element name="duns" type="xsd:string" minOccurs="1"
> > > <element name="misc" type="ns:CompanyRecord" minOccurs="1"
> > > maxOccurs="1"/>
> > >
> > > ...
> > >
> > > </sequence>
> > > </complexType>
> > > </element>
> > >
> > > The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
> > > and java1.6 on ubuntu amd64.
> > >
> > > Thanks!
> > > Charlie
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Amila Suriarachchi,
WSO2 Inc.
RE: nested complex types
Posted by csanders <cs...@hoovers.com>.
Ok thanks for your response.
On Wed, 2007-10-24 at 15:41 +0100, Gudla, Natraj (GE Money, consultant)
wrote:
> I have used wsdl2java with axis2 1.2. It might be worth having a close look at your wsdl verifying your element and type references.
>
> I am really busy with my work otherwise i would have looked at your wsdl.
>
> -----Original Message-----
> From: csanders [mailto:csanders@hoovers.com]
> Sent: 24 October 2007 15:29
> To: axis-user@ws.apache.org
> Subject: RE: nested complex types
>
>
> Both of those changes made wsdl2java segfault with antlr errors. Did
> you do this using axis2 or axis1 ?
>
> It seems their must be something simple I'm doing wrong, it can't be
> this hard to get it to generate code that works.
>
>
> On Wed, 2007-10-24 at 08:42 +0100, Gudla, Natraj (GE Money, consultant)
> wrote:
> > Hi,
> >
> > It depends on where and how you are refer to "CompanyBasicInfo". From your code i understand this is an element in the first place having a complex type. So in your wsdl this should be included as a ref="" <element name="" ref="CompanyBasicInfo">. You might must be having your current as <element name="" type="CompanyBasicInfo"/>.
> >
> > When i faced this, i solved it as the above. CompanyBasicInfo is an element and you refer it as a type in wsdl, hence the error "Type is missing". Either change your schema to make CompanyBasicInfo as an independant type OR change your wsdl to create a reference.
> >
> > hope this helps.
> >
> > Cheers
> > Natraj.
> >
> > -----Original Message-----
> > From: csanders [mailto:csanders@hoovers.com]
> > Sent: 23 October 2007 21:14
> > To: axis-user@ws.apache.org
> > Subject: nested complex types
> >
> >
> > Hi all :).
> >
> > I'm having some trouble getting nested complex types to work correctly.
> > I'm noticing that for members of the generated class, instead of using
> > the generated Wrapper class ( which it does generate ) , it uses
> > OMElement.
> >
> > When I run wsdl2java I get several warnings about missing types, for
> > example :
> >
> > [WARN] Type {urn:beagle}CompanyBasicInfo missing!
> >
> > I noticed that the items that don't give me warnings are declared like
> > this:
> >
> > <complexType name="UsUkSICMapRecord">
> > <sequence>
> > <element name="us-sic-code" type="xsd:string" minOccurs="1"
> > maxOccurs="1"/>
> > <element name="uk-sic-code" type="xsd:string" minOccurs="1"
> > maxOccurs="1"/>
> > </sequence>
> > </complexType>
> >
> > and all the ones that it complains are missing are declared like:
> >
> > <element name="CompanyBasicInfo">
> > <complexType>
> > <sequence>
> > <element name="gid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> > <element name="duns" type="xsd:string" minOccurs="1"
> > <element name="misc" type="ns:CompanyRecord" minOccurs="1"
> > maxOccurs="1"/>
> >
> > ...
> >
> > </sequence>
> > </complexType>
> > </element>
> >
> > The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
> > and java1.6 on ubuntu amd64.
> >
> > Thanks!
> > Charlie
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: nested complex types
Posted by "Gudla, Natraj (GE Money, consultant)" <na...@ge.com>.
I have used wsdl2java with axis2 1.2. It might be worth having a close look at your wsdl verifying your element and type references.
I am really busy with my work otherwise i would have looked at your wsdl.
-----Original Message-----
From: csanders [mailto:csanders@hoovers.com]
Sent: 24 October 2007 15:29
To: axis-user@ws.apache.org
Subject: RE: nested complex types
Both of those changes made wsdl2java segfault with antlr errors. Did
you do this using axis2 or axis1 ?
It seems their must be something simple I'm doing wrong, it can't be
this hard to get it to generate code that works.
On Wed, 2007-10-24 at 08:42 +0100, Gudla, Natraj (GE Money, consultant)
wrote:
> Hi,
>
> It depends on where and how you are refer to "CompanyBasicInfo". From your code i understand this is an element in the first place having a complex type. So in your wsdl this should be included as a ref="" <element name="" ref="CompanyBasicInfo">. You might must be having your current as <element name="" type="CompanyBasicInfo"/>.
>
> When i faced this, i solved it as the above. CompanyBasicInfo is an element and you refer it as a type in wsdl, hence the error "Type is missing". Either change your schema to make CompanyBasicInfo as an independant type OR change your wsdl to create a reference.
>
> hope this helps.
>
> Cheers
> Natraj.
>
> -----Original Message-----
> From: csanders [mailto:csanders@hoovers.com]
> Sent: 23 October 2007 21:14
> To: axis-user@ws.apache.org
> Subject: nested complex types
>
>
> Hi all :).
>
> I'm having some trouble getting nested complex types to work correctly.
> I'm noticing that for members of the generated class, instead of using
> the generated Wrapper class ( which it does generate ) , it uses
> OMElement.
>
> When I run wsdl2java I get several warnings about missing types, for
> example :
>
> [WARN] Type {urn:beagle}CompanyBasicInfo missing!
>
> I noticed that the items that don't give me warnings are declared like
> this:
>
> <complexType name="UsUkSICMapRecord">
> <sequence>
> <element name="us-sic-code" type="xsd:string" minOccurs="1"
> maxOccurs="1"/>
> <element name="uk-sic-code" type="xsd:string" minOccurs="1"
> maxOccurs="1"/>
> </sequence>
> </complexType>
>
> and all the ones that it complains are missing are declared like:
>
> <element name="CompanyBasicInfo">
> <complexType>
> <sequence>
> <element name="gid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> <element name="duns" type="xsd:string" minOccurs="1"
> <element name="misc" type="ns:CompanyRecord" minOccurs="1"
> maxOccurs="1"/>
>
> ...
>
> </sequence>
> </complexType>
> </element>
>
> The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
> and java1.6 on ubuntu amd64.
>
> Thanks!
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: nested complex types
Posted by csanders <cs...@hoovers.com>.
Both of those changes made wsdl2java segfault with antlr errors. Did
you do this using axis2 or axis1 ?
It seems their must be something simple I'm doing wrong, it can't be
this hard to get it to generate code that works.
On Wed, 2007-10-24 at 08:42 +0100, Gudla, Natraj (GE Money, consultant)
wrote:
> Hi,
>
> It depends on where and how you are refer to "CompanyBasicInfo". From your code i understand this is an element in the first place having a complex type. So in your wsdl this should be included as a ref="" <element name="" ref="CompanyBasicInfo">. You might must be having your current as <element name="" type="CompanyBasicInfo"/>.
>
> When i faced this, i solved it as the above. CompanyBasicInfo is an element and you refer it as a type in wsdl, hence the error "Type is missing". Either change your schema to make CompanyBasicInfo as an independant type OR change your wsdl to create a reference.
>
> hope this helps.
>
> Cheers
> Natraj.
>
> -----Original Message-----
> From: csanders [mailto:csanders@hoovers.com]
> Sent: 23 October 2007 21:14
> To: axis-user@ws.apache.org
> Subject: nested complex types
>
>
> Hi all :).
>
> I'm having some trouble getting nested complex types to work correctly.
> I'm noticing that for members of the generated class, instead of using
> the generated Wrapper class ( which it does generate ) , it uses
> OMElement.
>
> When I run wsdl2java I get several warnings about missing types, for
> example :
>
> [WARN] Type {urn:beagle}CompanyBasicInfo missing!
>
> I noticed that the items that don't give me warnings are declared like
> this:
>
> <complexType name="UsUkSICMapRecord">
> <sequence>
> <element name="us-sic-code" type="xsd:string" minOccurs="1"
> maxOccurs="1"/>
> <element name="uk-sic-code" type="xsd:string" minOccurs="1"
> maxOccurs="1"/>
> </sequence>
> </complexType>
>
> and all the ones that it complains are missing are declared like:
>
> <element name="CompanyBasicInfo">
> <complexType>
> <sequence>
> <element name="gid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
> <element name="duns" type="xsd:string" minOccurs="1"
> <element name="misc" type="ns:CompanyRecord" minOccurs="1"
> maxOccurs="1"/>
>
> ...
>
> </sequence>
> </complexType>
> </element>
>
> The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
> and java1.6 on ubuntu amd64.
>
> Thanks!
> Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: nested complex types
Posted by "Gudla, Natraj (GE Money, consultant)" <na...@ge.com>.
Hi,
It depends on where and how you are refer to "CompanyBasicInfo". From your code i understand this is an element in the first place having a complex type. So in your wsdl this should be included as a ref="" <element name="" ref="CompanyBasicInfo">. You might must be having your current as <element name="" type="CompanyBasicInfo"/>.
When i faced this, i solved it as the above. CompanyBasicInfo is an element and you refer it as a type in wsdl, hence the error "Type is missing". Either change your schema to make CompanyBasicInfo as an independant type OR change your wsdl to create a reference.
hope this helps.
Cheers
Natraj.
-----Original Message-----
From: csanders [mailto:csanders@hoovers.com]
Sent: 23 October 2007 21:14
To: axis-user@ws.apache.org
Subject: nested complex types
Hi all :).
I'm having some trouble getting nested complex types to work correctly.
I'm noticing that for members of the generated class, instead of using
the generated Wrapper class ( which it does generate ) , it uses
OMElement.
When I run wsdl2java I get several warnings about missing types, for
example :
[WARN] Type {urn:beagle}CompanyBasicInfo missing!
I noticed that the items that don't give me warnings are declared like
this:
<complexType name="UsUkSICMapRecord">
<sequence>
<element name="us-sic-code" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<element name="uk-sic-code" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
</sequence>
</complexType>
and all the ones that it complains are missing are declared like:
<element name="CompanyBasicInfo">
<complexType>
<sequence>
<element name="gid" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<element name="duns" type="xsd:string" minOccurs="1"
<element name="misc" type="ns:CompanyRecord" minOccurs="1"
maxOccurs="1"/>
...
</sequence>
</complexType>
</element>
The wsdl file I'm using was created by gSOAP, and I'm using Axis2-1.3,
and java1.6 on ubuntu amd64.
Thanks!
Charlie
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org