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:[EMAIL PROTECTED]
> Sent: 24 October 2007 15:29
> To: [email protected]
> 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:[EMAIL PROTECTED]
> > Sent: 23 October 2007 21:14
> > To: [email protected]
> > 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to