I disagree. I went back and checked the JAX-RPC rules on this and 
underscores (actually, any character that returns positively from 
Character.isJavaIdentifierPart() is not considered punctuation.  The 
JAX-RPC specification calls them "marks".  The mapping rules offer the 
following examples. (I appologize if the columns don't line up cleanly... 
there are three columns)

XML Name                Class Name              Method Name
==============================================================
mixedCaseName   MixedCaseName   mixedCaseName
name-with-dashes        NameWithDashes  nameWithDashes
name_with_underscore    Name_with_underscore    name_with_underscore
other_punct.chars       Other_punctChars        other_punctChars
Answer42                Answer42                answer42

Pay attention to rows 3 and 4.  The letter immediately following the 
underscore is not capitalized.  Without this change, Axis is actually not 
following the JAX-RPC mapping rules.

Reference: JAX-RPC Spec 20-Appendix: Mapping of XML Names

- James Snell
     IBM Emerging Technologies
     [EMAIL PROTECTED]
     (559) 587-1233 (office)
     (700) 544-9035 (t/l)
     Programming Web Services With SOAP
         O'Reilly & Associates, ISBN 0596000952

     Have I not commanded you? Be strong and courageous. 
     Do not be terrified, do not be discouraged, for the Lord your 
     God will be with you whereever you go.    - Joshua 1:9



[EMAIL PROTECTED]
02/28/2003 06:56 AM
Please respond to axis-dev


To
[EMAIL PROTECTED]
cc

bcc

Subject
cvs commit: xml-axis/java/src/org/apache/axis/utils JavaUtils.java



gdaniels    2003/02/28 06:56:11

Modified:    java/src/org/apache/axis/utils JavaUtils.java
Log:
Put this back.  We can't change this or we break JAX-RPC.

Revision  Changes    Path
1.93      +1 -1 xml-axis/java/src/org/apache/axis/utils/JavaUtils.java

Index: JavaUtils.java
===================================================================
RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/utils/JavaUtils.java,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- JavaUtils.java      28 Feb 2003 01:36:24 -0000      1.92
+++ JavaUtils.java      28 Feb 2003 14:56:11 -0000      1.93
@@ -832,7 +832,7 @@
// If c is not a character, but is a legal Java
// identifier character, capitalize the next character.
// For example:  "22hi" becomes "22Hi"
-            wordStart = !(Character.isLetter(c) || 
Character.isJavaIdentifierPart(c));
+            wordStart = !Character.isLetter(c);
//wordStart = !Character.isJavaIdentifierPart(c)
}





Reply via email to