Java服务器和C#客户端 [英] java server and c# client

查看:188
本文介绍了Java服务器和C#客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那里-

我已经用C#在.net中编写了一个程序,该程序调用了用Java编写的Web服务.当我发送请求并获得此Web服务的响应时,我的DATETIME将更改

例如

要求2010年12月6日上午9:20
响应2010年12月6日下午6:50

而且我不知道为什么会这样.请帮助我,谢谢.

hi there -

I have written a program in .net with c# and that calls web service written in Java. When I send request and get the response from this web service, my DATETIME will be change

For example

req 12/6/2010 9:20 AM
response 12/6/2010 6:50 PM

and i dont know why it happens. please help me thanks.

推荐答案

您可能会在其他服务器上访问本地时间.
可以通过将时差保存在变量中并对其应用本地时间来解决此问题.
少量的脚本应该可以解决问题.

您可以看到CP对发布的影响,它将与当地时间一起放入收件箱,但是发布的时间是加拿大时间!
You are probablty accessing local time on different servers.
There is a way around this by holding the time differential in a variable and applying local time to it.
A little bit of script should correct the problem.

You can see the effect on CP on postings, where it will come into the In Box with local time, but the posted time is Canadian!


您的服务器在哪里?
您的客户在哪里?
他们可能在不同的时区吗?


服务器和客户端是一个地方-mosi_habib在47秒前


然后检查两台PC上的时间是否相同!
Where is your server?
Where is your client?
Are they in different time zones, perhaps?


"Server And Client is one Place - mosi_habib 47 secs ago


Then check that the time on both PC are the same!


检查两台计算机上的系统时间
check the system time on both machines


这篇关于Java服务器和C#客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆