Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Problem with Data Converter in XML ODA driver
Problem with Data Converter in XML ODA driver [message #589715] Fri, 25 January 2008 15:37
Eclipse UserFriend
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,
Previous Topic:SQL Editor using ODA conx - 1 attachment
Next Topic:Managed C++ Projects: a figment of my imagination?
Goto Forum:
  


Current Time: Sat Dec 05 11:06:16 GMT 2020

Powered by FUDForum. Page generated in 0.01661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top