Problem with Data Converter in XML ODA driver [message #40908] |
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,
|
|
|
|
Re: Problem with Data Converter in XML ODA driver [message #41061 is a reply to message #40908] |
Thu, 31 January 2008 02:13 |
Lin Zhu 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 |
Lin Zhu 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 #589768 is a reply to message #40908] |
Thu, 31 January 2008 02:13 |
Lin Zhu 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 |
Lin Zhu 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,
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03940 seconds