DateTime being changed during Xml Serialization of a DataSet using WSE 1.0

From: Chris Langston (CLangston_at_horizon-boss.com)
Date: 05/20/04

  • Next message: Svein Terje Gaup: "Re: Impersonation in threads in web application"
    Date: Thu, 20 May 2004 17:38:48 -0400
    
    

    I have a Web Service that returns a DataSet to a client. I'm seeing some
    strange behavior where the Date of one of my values is being changed from
    the time the DataSet leaves the Web Service to the time when it shows up at
    the Client application.

    Below is the DataSet serialized to Xml at the Web Service before it is sent
    to the Client: This issue is with the
    <ServDate>2004-05-20T00:00:00.0000000-05:00</ServDate>

    <NewDataSet>
      <Table>
        <SiteID>0061</SiteID>
        <ServDate>2004-05-20T00:00:00.0000000-05:00</ServDate>
        <ServTime>1900-01-01T15:26:03.0000000-06:00</ServTime>
        <TransNbr>144</TransNbr>
        <ID>594258826X</ID>
        <TransType>1</TransType>
        <Cashier>1</Cashier>
        <TranClass />
        <CheckNum>-1</CheckNum>
        <Tendered>0.0100</Tendered>
        <PayType>51</PayType>
        <Allocation>1</Allocation>
        <Received>false</Received>
      </Table>
      <Transaction>
        <TransactionID>236ac886-e7f3-4980-92cf-cc0c83232da4</TransactionID>
        <SentDateTime>2004-05-20T15:28:07.5625000-05:00</SentDateTime>
      </Transaction>
    </NewDataSet>

    Here is the DataSet when it shows up at the Client site: The <ServDate> has
    been changed from 2004-05-20 to 2004-05-19

    <ServDate>2004-05-19T23:00:00.0000000-06:00</ServDate>

    <NewDataSet>
      <Table>
        <SiteID>0061</SiteID>
        <ServDate>2004-05-19T23:00:00.0000000-06:00</ServDate>
        <ServTime>1900-01-01T15:26:03.0000000-06:00</ServTime>
        <TransNbr>144</TransNbr>
        <ID>594258826X</ID>
        <TransType>1</TransType>
        <Cashier>1</Cashier>
        <TranClass />
        <CheckNum>-1</CheckNum>
        <Tendered>0.0100</Tendered>
        <PayType>51</PayType>
        <Allocation>1</Allocation>
        <Received>false</Received>
      </Table>
      <Transaction>
        <TransactionID>236ac886-e7f3-4980-92cf-cc0c83232da4</TransactionID>
        <SentDateTime>2004-05-20T14:28:07.5625000-06:00</SentDateTime>
      </Transaction>
    </NewDataSet>

    The web server is running Windows 2003 Server Standards Edition with .NET
    1.1 and the Client server is running Windows Xp Professional SP1 with .NET
    1.1.

    Any suggestions on how these values could be getting changed.

    The servers are both in Central Time Zone, the clocks are all setup
    properly, just off by a about 2 minutes, which doesn't seem to be causing
    any problems.

    We are using the WSE 1.0 to Encrypt and Decrypt the Xml packets that are
    being sent back and forth between the client and the server.

    Thanks,

    Chris Langston


  • Next message: Svein Terje Gaup: "Re: Impersonation in threads in web application"

    Relevant Pages

    • Re: Still Need desperate help to start with ASP NET - simplified problems - HELP!!
      ... You could do it as a web service. ... The handler can draw on the webservice for information and db lookup. ... IE posts data AJAX to handler on web server ... featured application (say thick client) which does a lot of complicate ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Impersonated login to web service from outside domain
      ... the client is part of the domain group. ... : integrated windows auth fails. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Unable to access AS2k from Win 2k m/c URGENT!!!!!!
      ... No, the Win2k machine just needs to have XMLA SDK and/or ADOMD.NET, MSXML4 ... > Analysis server need more credentials than specified in my ... the same machine as the ADOMD.NET client. ... Why do you need this web service ...
      (microsoft.public.data.xmlanalysis)
    • Re: Impersonated login to web service from outside domain
      ... the client is part of the domain group. ... You can try creating an identical local user on the server (as the one you ... next call to the web service (ie. the process requiring the credentials to ... Any other windows server gurus care to clarify? ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Web service testing
      ... To test if my code was faulty or not, I back-ported the web service to a standard 2.0 web service using Visual Studio 2005. ... The service is run under IIS on a Windows 2003 server, so there are no server side connection limits that can explain this. ... ASP.NET webservice application. ... In addition, since the problems occur at client, you can use Visual studio ...
      (microsoft.public.dotnet.framework.webservices)