That did the trick..... Thx! :) I'll kick the one that made this...
BTJ On Thu, 29 Mar 2007 08:52:16 -0400 "Christopher Moesel" <[EMAIL PROTECTED]> wrote: > BTJ-- > > I've found your problem (and it's not in the schema import). The problem is > that you have element names > that differ only in case (upper or lower) and are nested. For example: > > <s:element name="getSwitchInfo"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="GetSwitchInfo"> > <!-- all the other details in here are fine --> > </s:element> > </s:sequence> > </s:complexType> > </s:element> > > XFire takes the outer element and generates a GetSwitchInfo class (note that > it converted the "g" to "G" > since it is good convention to have java class names start with a capital > letter). > > Inside of the GetSwitchInfo is a static inner class for the nested element > "GetSwitchInfo". Since the > static inner has the same class name as the containing class, the compiler > seems to get all confused. > > I don't know if this would be considered an XFire bug or not. If you have > any control over the schema > though, the easiest solution is to rename that nested element. For example: > > <s:element name="getSwitchInfo"> > <s:complexType> > <s:sequence> > <s:element minOccurs="0" maxOccurs="1" name="GetSwitchInfoParams"> > <!-- all the other details in here are fine --> > </s:element> > </s:sequence> > </s:complexType> > </s:element> > > I've re-attached a version of the WSDL with these corrections. I was able to > successfully generate and > compile classes from it. Note: I didn't need to rename any of the > Concentrator... elements because the > original author misspelled all of the inner elements for those ones anyway. ;) > > -Chris > > -----Original Message----- > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 29, 2007 8:30 AM > To: [email protected] > Subject: Re: [xfire-user] Duplicate class.... > > Could you please explain what I need to do to remove one of the schemas? I am > a newbie to webservices and I > am just trying to use a webservice that someone else has made.... > > > BTJ > > On Thu, 29 Mar 2007 14:22:19 +0200 > "Honorez Dylan" <[EMAIL PROTECTED]> wrote: > > > I see you have to schema's in your wsdl, and one of them is importing the > > other ... > > I don't think that can be right ... > > > > If you want to import another schema, try putting it into a separate file, > > and use the schemaLocation > > attribute on your import element. > > > > Kind regards, > > > > Dylan Honorez > > R & D Consultant > > 4C Technologies / kZen > > +32 (0)485 / 69.28.12 > > [EMAIL PROTECTED] > > > > -----Original Message----- > > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > > Sent: donderdag 29 maart 2007 14:08 > > To: [email protected] > > Subject: Re: [xfire-user] Duplicate class.... > > > > Don't think there is any secrets there, so here you go... :) > > > > BTJ > > > > On Thu, 29 Mar 2007 07:51:31 -0400 > > "Christopher Moesel" <[EMAIL PROTECTED]> wrote: > > > > > BTJ-- are you able to send a copy of your WSDL to the list? > > > > > > -Chris > > > > > > -----Original Message----- > > > From: Karl Palsson [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, March 29, 2007 7:16 AM > > > To: [email protected] > > > Subject: RE: [xfire-user] Duplicate class.... > > > > > > > > > Those are just bindings, it shouldn't be duplicating the schema section. > > > > > > I can't really help you, but I can steer you away from the wrong > > > rabbit hole :) > > > > > > > -----Original Message----- > > > > From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] > > > > Sent: Thursday, March 29, 2007 9:29 AM > > > > To: [email protected] > > > > Subject: Re: [xfire-user] Duplicate class.... > > > > > > > > I think I see why... If I use soap-ui and import the wsdl, it > > > > creates to webservices; one for soap 1.1 and one for soap 1.2.. My > > > > guess it that that's the reasong I get duplicate classes... > > > > > > > > But how can I fix this? > > > > > > > > > > > > BTJ > > > > > > > > On Thu, 29 Mar 2007 10:48:02 +0300 > > > > "Tero Kivisaari" <[EMAIL PROTECTED]> wrote: > > > > > > > > > I think I have had the same error and it was because of namespace > > > > > problems in the WSDL. Are you sure that you have a valid WSDL? > > > > > (Eclipse or soapUI will help with validating) > > > > > > > > > > -Tero > > > > > > > > > > On 3/29/07, Bjørn T Johansen <[EMAIL PROTECTED]> wrote: > > > > > > No one has any idea why this happends?? > > > > > > > > > > > > BTJ > > > > > > > > > > > > On Tue, 27 Mar 2007 11:00:29 +0200 Bjørn T Johansen > > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > I am trying to generate java classes based on a WSDL > > > > but in some > > > > > > > of the generated classes I get the error "Duplicate > > > > class" but most of the classes is ok... > > > > > > > Is this a known limitation/bug? > > > > > > > > > > > > > > I have tried both XFire 1.2.2 and 1.2.5 but it > > > > generates the same code.. > > > > > > > > > > > > > > > > > > > > > Regards, > > > > > > > > > > > > > > BTJ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > > > - To unsubscribe from this list please visit: > > > > > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > - > > > > > To unsubscribe from this list please visit: > > > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > -------------------------------------------------------------------- > > > > - To unsubscribe from this list please visit: > > > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > > > http://xircles.codehaus.org/manage_email > > > > > > > --------------------------------------------------------------------- > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
