Hello!

Here is my problem:

 

1. I send an object that contains date(date+ time) objects from a C# visual studio application.

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/axis/services/SailviewServer" xmlns:types="http://localhost/axis/services/SailviewServer/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

����� <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

�������� <q1:InsertRegatta xmlns:q1="http://sailviewserver">

����������� <in0 xsi:type="xsd:string">pewa</in0>

����������� <in1 xsi:type="xsd:string">pewa</in1>

����������� <in2 href="#id1" />

�������� </q1:InsertRegatta>

�������� <q2:Regatta id="id1" xsi:type="q2:Regatta" xmlns:q2="urn:SailviewServer">

����������� <description xsi:type="xsd:string" />

����������� <endDate xsi:type="xsd:dateTime">2004-02-19T11:34:40.2968750+01:00</endDate>

����������� <id xsi:type="xsd:int">0</id>

����������� <location xsi:type="xsd:string" />

����������� <name xsi:type="xsd:string">TEST</name>

����������� <startDate xsi:type="xsd:dateTime">2004-02-19T11:34:40.2968750+01:00</startDate>

����������� <updateDate xsi:type="xsd:dateTime">2004-02-19T11:34:40.2968750+01:00</updateDate>

����������� <yachtClub xsi:type="xsd:string" />

�������� </q2:Regatta>

����� </soap:Body>

�� </soap:Envelope>

 

2. I store this object in a database. The date objects are stored correctly (correct date and time)

 

3. Now I want to read this information from my C# application so I send a request for it. Here is the reply from axis:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

����� <soapenv:Body>�

�������� <ns1:GetRegattaByIdResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://sailviewserver">��

����������� <ns1:GetRegattaByIdReturn href="#id0"/>�

�������� </ns1:GetRegattaByIdResponse>�

�������� <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Regatta" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:SailviewServer">��

����������� <description xsi:type="xsd:string"></description>��

����������� <endDate xsi:type="xsd:date">2004-02-19</endDate>��

����������� <id xsi:type="xsd:int">115</id>��

����������� <location xsi:type="xsd:string"></location>��

����������� <name xsi:type="xsd:string">TEST</name>��

����������� <ownerUsername xsi:type="xsd:string">pewa</ownerUsername>��

����������� <startDate xsi:type="xsd:date">2004-02-19</startDate>��

����������� <updateDate xsi:type="xsd:date">2004-02-19</updateDate>��

������� ����<yachtClub xsi:type="xsd:string"></yachtClub>�

�������� </multiRef>

����� </soapenv:Body>

�� </soapenv:Envelope>

 

As you can see the Time information is missing!

 

I have attached my java Regatta class.

 

Can anyone help me?

 

 

 

Attachment: Regatta.java
Description: Binary data

Reply via email to