Problem with Data Converter in XML ODA driver [message #589715] |
Fri, 25 January 2008 15:37 |
Eclipse User |
|
|
|
Originally posted by: ciro.cavani.uqbar.com.br
Hi,
I did an ODA driver bridge for ODA WS Driver, but could not read date
values like 2008-01-25T00:00:00-03:00 from XML (SOAP Message actually).
After some investigation, I think that the problem could be in
DateFormatISO8601 where creanDate don't test for '-':
private static String cleanDate( String s )
{
s = s.trim( );
if ( s.indexOf( 'T' ) < 12 )
{
s = s.replaceFirst( "T", " " );
}
int zoneIndex = s.indexOf( "GMT" );
if( zoneIndex > 0 )
{
return s.substring( 0, zoneIndex ).trim( );
}
zoneIndex = s.indexOf( 'Z' );
if ( zoneIndex == s.length( ) - 1 )
{
return s.substring( 0, zoneIndex ).trim( );
}
zoneIndex = s.indexOf( '+' );
if ( zoneIndex > 0 )
{
return s.substring( 0, zoneIndex ).trim( );
}
return s;
}
I fix this problema making the server generate just date part.
Thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.02963 seconds