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 #40908] Fri, 25 January 2008 15:37 Go to next message
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,
Should be "Date" and no "Data" [message #40938 is a reply to message #40908] Fri, 25 January 2008 15:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ciro.cavani.uqbar.com.br

sorry!
Re: Problem with Data Converter in XML ODA driver [message #41061 is a reply to message #40908] Thu, 31 January 2008 02:13 Go to previous messageGo to next message
Lin Zhu is currently offline Lin ZhuFriend
Messages: 72
Registered: July 2009
Member
Ciro,

Thank you for the investigation. We will look into this.

Lin
"Ciro Cavani" <ciro.cavani@uqbar.com.br> wrote in message
news:95ac6be40a869a784b85c3b512c71f05$1@www.eclipse.org...
> 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,
>
Re: Problem with Data Converter in XML ODA driver [message #41246 is a reply to message #40908] Mon, 04 February 2008 07:04 Go to previous messageGo to next message
Lin Zhu is currently offline Lin ZhuFriend
Messages: 72
Registered: July 2009
Member
Ciro,

Thank you for your input. This is confirmed a bug. Bugzilla bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217640 has been filed to trace
it.

Lin

"Ciro Cavani" <ciro.cavani@uqbar.com.br> wrote in message
news:95ac6be40a869a784b85c3b512c71f05$1@www.eclipse.org...
> 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,
>
Re: Problem with Data Converter in XML ODA driver [message #41568 is a reply to message #41246] Thu, 14 February 2008 01:52 Go to previous message
Eclipse UserFriend
Originally posted by: ciro.cavani.uqbar.com.br

Lin,

Thanks.
Should be "Date" and no "Data" [message #589726 is a reply to message #40908] Fri, 25 January 2008 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: ciro.cavani.uqbar.com.br

sorry!
Re: Problem with Data Converter in XML ODA driver [message #589768 is a reply to message #40908] Thu, 31 January 2008 02:13 Go to previous message
Lin Zhu is currently offline Lin ZhuFriend
Messages: 72
Registered: July 2009
Member
Ciro,

Thank you for the investigation. We will look into this.

Lin
"Ciro Cavani" <ciro.cavani@uqbar.com.br> wrote in message
news:95ac6be40a869a784b85c3b512c71f05$1@www.eclipse.org...
> 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,
>
Re: Problem with Data Converter in XML ODA driver [message #589833 is a reply to message #40908] Mon, 04 February 2008 07:04 Go to previous message
Lin Zhu is currently offline Lin ZhuFriend
Messages: 72
Registered: July 2009
Member
Ciro,

Thank you for your input. This is confirmed a bug. Bugzilla bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=217640 has been filed to trace
it.

Lin

"Ciro Cavani" <ciro.cavani@uqbar.com.br> wrote in message
news:95ac6be40a869a784b85c3b512c71f05$1@www.eclipse.org...
> 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,
>
Re: Problem with Data Converter in XML ODA driver [message #589950 is a reply to message #41246] Thu, 14 February 2008 01:52 Go to previous message
Eclipse UserFriend
Originally posted by: ciro.cavani.uqbar.com.br

Lin,

Thanks.
Previous Topic:Test fixture for connectivity extension
Next Topic:DTP 1.6 Source for Builds
Goto Forum:
  


Current Time: Thu Apr 18 20:44:40 GMT 2024

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

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

Back to the top