Hi Guillaume,

The mapping of xsd:date to java.lang.String is correct - see pg. 95 of the 
SDO spec.

There appears to be a bug in the Tuscany implementation of date handling. 
Someone else noticed the same problem you're describing, a couple of weeks 
ago I believe. If you'd like to open a JIRA for it, that would be great.

Thanks,
Frank

Guillaume Dufrene <[EMAIL PROTECTED]> wrote on 06/14/2006 05:44:34 
AM:

> Hi,
> 
> I tried org.apache.tuscany.sdo.generate.JavaGenerator to generate 
classes.
> In my wsdl file, I have a xsd schema including complexType.
> Some attributes are xsd:date.
> The generation does not fail but these attributes are generated as 
> String fields
> into the corresponding java class.
> Is there an error here ?
> 
> An other issue :
> The same wsdl and xsd schema allow me to publish this service in an 
other
> SOAP compliant server.
> When requesting something from tuscany an error is thrown when handling
> the date field.
> According to the specifications, a xsd:date is represented as 
> 'YYYY-MM-DD[Z]'
> My server reply "2006-05-10Z", seems to be Ok. But tuscany says me that 
this
> is an illegal value.
> here comes a small stack trace :
>      [java] Exception in thread "main" javax.xml.ws.WebServiceException: 

> org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Value 
> '2006-05-10Z' is not legal. (http:///temp.xml, 3, 123)
>      [java] at 
> org.apache.tuscany.binding.celtix.handler.io.NodeDataReader.
> readWrapper(NodeDataReader.java:105)
>      [java] at 
> org.apache.tuscany.binding.celtix.handler.io.NodeDataReader.
> readWrapper(NodeDataReader.java:41)
>      [java] at 
> org.objectweb.celtix.bus.bindings.soap.SOAPBindingImpl.
> getParts(SOAPBindingImpl.java:504)
>      [java] at 
> org.objectweb.celtix.bus.bindings.soap.SOAPBindingImpl.
> unmarshal(SOAPBindingImpl.java:237)
>      [java] at 
> org.objectweb.celtix.bindings.Response.processLogical(Response.java:118)
>      [java] at 
> org.objectweb.celtix.bindings.AbstractClientBinding.
> invoke(AbstractClientBinding.java:160)
>      [java] at 
> org.apache.tuscany.binding.celtix.handler.ExternalWebServiceClient.
> invoke(ExternalWebServiceClient.java:164)
>      [java] at 
> org.apache.tuscany.binding.celtix.handler.
> ExternalWebServiceTargetInvoker.
> invokeTarget(ExternalWebServiceTargetInvoker.java:74)
>      [java] at 
> org.apache.tuscany.binding.celtix.handler.
> ExternalWebServiceTargetInvoker.
> invoke(ExternalWebServiceTargetInvoker.java:86)
>      [java] at 
> org.apache.tuscany.core.wire.impl.InvokerInterceptor.
> invoke(InvokerInterceptor.java:39)
>      [java] at 
> org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.
> invoke(JDKInvocationHandler.java:112)
> [...]
> 
> Have you encounter this problem ?
> 
> --
> Guillaume DufrĂȘne.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to