You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by RICARD Bertrand ext DvSI/SICoR <ex...@francetelecom.com> on 2002/06/11 13:53:40 UTC

dateTime serializer problem

Hi,
How can i user a alternate serializer / deserializer for dateTime 2001
schema without  the soap response being modifed ?

1 - i want to have local time without milliseconds : yyyy-MM-dd'T'HH:mm:ss
which is a 2001 schema compatible format
2 - i've made my own date serializer / deserializer and added it in the
DeployementDescriptor
3 - in the service response, the date is transmitted as follow :
	<date xsi:type="ns1:myproject.myResponse">2002-06-11T13:46:54</date>
I would like the response to be
	<date xsi:type="xsd:dateTime">2002-06-11T13:46:54</date>

Without my serializer, the response comes with
	<date xsi:type="xsd:dateTime">2002-06-11T09:25:29.424Z</date>

with
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Thanks a lot for your help
--
Bertrand


RE: dateTime serializer problem

Posted by RICARD Bertrand ext DvSI/SICoR <ex...@francetelecom.com>.
ok i found the answer.
just have to specify xmlns:xsd="http://www.w3.org/2001/XMLSchema"
qname="xsd:dateTime" in the deployment descriptor mapping.


-----Message d'origine-----
De : RICARD Bertrand ext DvSI/SICoR
[mailto:externe.ricard@francetelecom.com]
Envoyé : mardi 11 juin 2002 13:54
À : 'soap mailing list'
Objet : dateTime serializer problem


Hi,
How can i user a alternate serializer / deserializer for dateTime 2001
schema without  the soap response being modifed ?

1 - i want to have local time without milliseconds : yyyy-MM-dd'T'HH:mm:ss
which is a 2001 schema compatible format
2 - i've made my own date serializer / deserializer and added it in the
DeployementDescriptor
3 - in the service response, the date is transmitted as follow :
	<date xsi:type="ns1:myproject.myResponse">2002-06-11T13:46:54</date>
I would like the response to be
	<date xsi:type="xsd:dateTime">2002-06-11T13:46:54</date>

Without my serializer, the response comes with
	<date xsi:type="xsd:dateTime">2002-06-11T09:25:29.424Z</date>

with
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Thanks a lot for your help
--
Bertrand


RE: dateTime serializer problem

Posted by RICARD Bertrand ext DvSI/SICoR <ex...@francetelecom.com>.
ok i found the answer.
just have to specify xmlns:xsd="http://www.w3.org/2001/XMLSchema"
qname="xsd:dateTime" in the deployment descriptor mapping.


-----Message d'origine-----
De : RICARD Bertrand ext DvSI/SICoR
[mailto:externe.ricard@francetelecom.com]
Envoyé : mardi 11 juin 2002 13:54
À : 'soap mailing list'
Objet : dateTime serializer problem


Hi,
How can i user a alternate serializer / deserializer for dateTime 2001
schema without  the soap response being modifed ?

1 - i want to have local time without milliseconds : yyyy-MM-dd'T'HH:mm:ss
which is a 2001 schema compatible format
2 - i've made my own date serializer / deserializer and added it in the
DeployementDescriptor
3 - in the service response, the date is transmitted as follow :
	<date xsi:type="ns1:myproject.myResponse">2002-06-11T13:46:54</date>
I would like the response to be
	<date xsi:type="xsd:dateTime">2002-06-11T13:46:54</date>

Without my serializer, the response comes with
	<date xsi:type="xsd:dateTime">2002-06-11T09:25:29.424Z</date>

with
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:xsd="http://www.w3.org/2001/XMLSchema">

Thanks a lot for your help
--
Bertrand