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 ax...@ws.apache.org on 2004/10/14 22:35:51 UTC
[jira] Closed: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Message:
The following issue has been closed.
Resolver: Davanum Srinivas
Date: Thu, 14 Oct 2004 1:34 PM
Closing bug as per martin and ashu's comments.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/AXIS-1588
Here is an overview of the issue:
---------------------------------------------------------------------
Key: AXIS-1588
Summary: base64.binary decodes as HexBinary --> ERROR
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Thu, 14 Oct 2004 1:34 PM
Environment: Window Server 2003; JDK 1.4.2_05;
Description:
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 Workaround.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira