axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Commented: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Date Thu, 07 Oct 2004 12:59:51 GMT
The following comment has been added to this issue:

     Author: Martin Landl
    Created: Thu, 7 Oct 2004 5:58 AM

I think this bug is already fixed? Today i used the AXIS-1_2RC1 from October 7th and generated
the Stubs.

Now the right decoding Type (Base64) is used in the Stub file.

Now i'm only able to reproduce the bug while using AXIS Version 1.2_Beta 3 from October 4th.

View this comment:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1588
    Summary: base64.binary decodes as HexBinary --> ERROR
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
             WSDL processing
             current (nightly)

   Reporter: Martin Landl

    Created: Tue, 5 Oct 2004 4:37 AM
    Updated: Thu, 7 Oct 2004 5:58 AM
Environment: Window Server 2003; JDK 1.4.2_05;

WSDL2Java generates wrong Stubs that should handle Nodes of type base64.binary.

To decode base64 content the HexBinary decoding is used. So i get the fault string: "Bad character
or insufficient number of characters in hex string"

public ContentType(java.lang.String _value) {
  //WRONG: DON'T USE HexBinary decoding with base64 content
  //this._value = org.apache.axis.types.HexBinary.decode(_value);
  this._value = org.apache.axis.encoding.Base64.decode(_value);

public java.lang.String toString() {
  //WRONG: DON'T USE HexBinary decoding with base64 content
  //return _value == null ? null : org.apache.axis.types.HexBinary.encode(_value);
    return _value == null ? null : org.apache.axis.encoding.Base64.encode(_value);

I replaced the (now commented) lines "..types.HexBinary.." with "..encoding.Base64.." as a

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message