Re: Think I found a bug in wsdl2java handling reserved word "Case" - Where to go from here?

2006-05-10 Thread Dies Koper

Hello Joshua,

It is really a bug.
For element names that are reserved Java keywords (case, public, if, 
etc.) Axis should prefix the Java field names with underscores.
However, "Case" is not a reserved keyword: the class name should not get 
the underscore.

I have never seen this in the BugDB, I think you are the first to find it.

"Where to go from here?": File a bug report:
http://issues.apache.org/jira/secure/CreateIssue!default.jspa

Regards,
Dies


[EMAIL PROTECTED] wrote:

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
Please respond to axis-user

	   
To:axis-user@ws.apache.org
    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:


   
   xmlns:java="java:mycompany.webservice.dto">

   
   nillable="true" type="xs:long" />
   type="java:Case" />

   
   
   


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




Re: Think I found a bug in wsdl2java handling reserved word "Case" - Where to go from here?

2006-05-08 Thread Joshua . White

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
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        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: 

 
     
         
             
                 
                 
             
         
     
 

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.
*




Think I found a bug in wsdl2java handling reserved word "Case" - Where to go from here?

2006-05-05 Thread Joshua . White

Given the following simplified class:

public class EligibilityProfile {
        private mypackager.Case _case;
}


The WSDL file get created fine:


    
        
            
                 
                 
            
        
    


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.
*