Hi Folks,

I'm trying to generate an XFire client to a very large credit reference
web service.  I've been provided with wsdl and xsd files, and have run the
WsGen program.  (I am completely new to XFire, having used jibx-soap in
the past.  I'm trying xfire because I need to be able to call an external
service - we've only previously used jibx-soap for internal->internal
calls.)

Unfortunately the generated files have a handful of compile errors.

The errors seem to be caused by having attributes within classes where the
attribute name is the same as the class name.  So, in the generated
ObjectFactory.java, I have references such as:

    public CTOutputBSB.APPLICANT.OIA.OIADEC.ER.OIA
createCTOutputBSBAPPLICANTOIAOIADECEROIA()
{
        return new CTOutputBSB.APPLICANT.OIA.OIADEC.ER.OIA();
}

which has an error because the static class OIA (at the end of this chain)
hides the previous OIA from further up.  The error I get in Eclipse where
the second OIA class is defined is "Nested type OIA hides an enclosing
type."  I thought this might be only an eclipse warning, but it doesn't
seem to be one I can turn off.  Looking at the xsd I do have <xs:element
name="OIA" minOccurs="0"> with a <xs:element name="OIA"> deep inside it.

How can I fix this?  I obviously have no control over the wsdl/xsd.  Am I
doomed to try Axis again? :-)

ta,

Tim.



---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to