Date Array Problems
-------------------
Key: AXIS-2641
URL: https://issues.apache.org/jira/browse/AXIS-2641
Project: Axis
Issue Type: Bug
Components: Serialization/Deserialization
Affects Versions: 1.4
Environment: N/A
Reporter: Sundry Phillips
Using Axis 1.4 on both sides, if a call is made with a java.util.Date[] array,
it is deserialized as a java.util.GregorianCalendar[].
Test Case
Client Side:
Object[] inputParams = new Object[]{new java.util.Date[] {new java.util.Date(),
new java.util.Date()}};
javax.xml.rpc.Service service =
ServiceFactory.newInstance().createService(null);
Call call = service.createCall(null, operationName);
call.setTargetEndpointAddress(endpoint);
Object result = call.invoke(inputParams);
Server Side
void operation(Object[] dates) {
for (Object obj: dates) {
System.out.println(obj);
}
}
The server will print out two java.util.GregorianDate objects.
If you would like, I can dig into the source code and correct. Let me know.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]