All,
How can I get around this problem? Axis is generating a class file named "_case" and using the instance name "_case" in my "EligibilityProfile" class. Is there any way around this or is this really a bug?
Joshua
| [EMAIL PROTECTED]
05/05/2006 10:44 PM
|
To: [email protected] cc: Subject: Think I found a bug in wsdl2java handling reserved word "Case" - Where to go from here? |
Given the following simplified class:
public class EligibilityProfile {
private mypackager.Case _case;
}
The WSDL file get created fine:
<s0:complexType name="EligibilityProfile">
<s0:complexContent>
<s0:extension base="java:BaseDomainObject" xmlns:java="java:mycompany.webservice.dto">
<s0:sequence>
<s0:element minOccurs="1" name="EligibilityProfileId" nillable="true" type="xs:long" />
<s0:element minOccurs="1" name="Case" nillable="true" type="java:Case" />
</s0:sequence>
</s0:extension>
</s0:complexContent>
</s0:complexType>
When wsdl2java get run however, I get the following EligibilityProfile class created (Note the case of the "_case" class name):
public class EligibilityProfile {
private mypackager._case _case;
}
This class won't even compile. If I refactor "mypackager._class" in the generated code to "mypackager.Class" it compiles, but I get a problem parsing a message:
org.xml.sax.SAXException: Invalid element in mycompany.webservice.dto.EligibilityProfile - case
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
How should I proceed?
Regards,
Joshua
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
