You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by to...@apache.org on 2003/04/07 22:51:12 UTC
cvs commit: xml-axis/java/src/org/apache/axis/wsdl/symbolTable Utils.java
tomj 2003/04/07 13:51:12
Modified: java/src/org/apache/axis/wsdl/symbolTable Utils.java
Log:
Revert fix for bug 18287 - Error in serialization of xsd:boolean fields
This stopped nillable="true" XML Schema types from getting translated to Java
wrapper types (Integer, etc). This causes Axis to fail the JAX-RPC test suite.
Revision Changes Path
1.26 +13 -1 xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java
Index: Utils.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/symbolTable/Utils.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- Utils.java 26 Mar 2003 16:02:35 -0000 1.25
+++ Utils.java 7 Apr 2003 20:51:12 -0000 1.26
@@ -121,7 +121,19 @@
QName rc = qName;
if (Constants.isSchemaXSD(rc.getNamespaceURI())) {
String localName = rc.getLocalPart();
- if (localName.equals("base64Binary")) {
+ if (localName.equals("int") ||
+ localName.equals("long") ||
+ localName.equals("short") ||
+ localName.equals("float") ||
+ localName.equals("double") ||
+ localName.equals("boolean") ||
+ localName.equals("byte"))
+ {
+ rc = findQName(Constants.URI_DEFAULT_SOAP_ENC,
+ qName.getLocalPart());
+ }
+ else if (localName.equals("base64Binary"))
+ {
rc = findQName(Constants.URI_DEFAULT_SOAP_ENC, "base64");
} else if (localName.equals("hexBinary")) {
rc = findQName(Constants.URI_DEFAULT_SCHEMA_XSD, "hexBinary");