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/05 13:37:32 UTC
[jira] Created: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Tue, 5 Oct 2004 4:37 AM
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
[jira] Commented: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Martin Landl
Created: Thu, 7 Oct 2004 5:58 AM
Body:
Hi!
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.
Martin
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1588?page=comments#action_53807
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
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;
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
[jira] Closed: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
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
[jira] Commented: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Davanum Srinivas
Created: Tue, 5 Oct 2004 5:32 AM
Body:
Martin,
please upload your complete wsdl.
thanks,
dims
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1588?page=comments#action_53713
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Tue, 5 Oct 2004 5:32 AM
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
[jira] Commented: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Ashutosh Shahi
Created: Thu, 7 Oct 2004 5:33 AM
Body:
Martin,
I tried reproducing your bug at my end with a sample WSDL and everything seems to be working fine here. The ContentType.java file is generated with Base64.decode()statement (and not HexBinary).
Basically, the seletion of the correct binary type occurs at:
axis\wsdl\toJava\JavaBeanWriter.java (ln:386) where you have -
String typeName = type.getQName().getLocalPart();
if (typeName.equals("base64Binary"))
return "org.apache.axis.encoding.Base64";
if (typeName.equals("hexBinary"))
return "org.apache.axis.types.HexBinary";
Can you look once what does type.getQName().getLocalPart() return when your wsdl with base64 element field is passed through WSDL2Java.
I am also posting my wsdl file for reference.
Thanks,
Ashutosh
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1588?page=comments#action_53805
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Thu, 7 Oct 2004 5:33 AM
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
[jira] Commented: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
The following comment has been added to this issue:
Author: Ashutosh Shahi
Created: Thu, 7 Oct 2004 6:53 AM
Body:
AXIS-1560 is the related bug, so can someone close that bug as well along with this one?
Regards,
Ashutosh
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/AXIS-1588?page=comments#action_53809
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Thu, 7 Oct 2004 6:53 AM
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
[jira] Updated: (AXIS-1588) base64.binary decodes as HexBinary --> ERROR
Posted by ax...@ws.apache.org.
The following issue has been updated:
Updater: Ashutosh Shahi (mailto:ashutosh.shahi@gmail.com)
Date: Thu, 7 Oct 2004 5:34 AM
Comment:
Attaching the wsdl file.
Changes:
Attachment changed to sample.wsdl
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/AXIS-1588?page=history
---------------------------------------------------------------------
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: Unassigned
Priority: Major
Project: Axis
Components:
WSDL processing
Versions:
current (nightly)
Assignee:
Reporter: Martin Landl
Created: Tue, 5 Oct 2004 4:37 AM
Updated: Thu, 7 Oct 2004 5:34 AM
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