wse抓包_WSE和时间戳记-TimeZones和Tijuana

wse抓包

wse抓包

A fellow emailed me about some trouble he was having with WSE (Web Services Enhancements) and Timestamp Expiration.  He was getting a SOAP Exception (Timestamp Fault) and figured it was because his machines were in different timezones.  This is what I told him:

一位同事通过电子邮件向我发送了有关WSE(Web服务增强功能)和Timestamp Expiration遇到的一些麻烦的信息。 他收到了SOAP异常(时间戳错误),并认为这是因为他的机器位于不同的时区。 这是我告诉他的:

This isn’t neccessarily an issue of maturity of the toolkit, it’s simply how TimeStamping (TTL) works on Web Services. Personally, I run my Web Servers on GMT/Universal Time to avoid even thinking about Timezones.  Either way, it’s really about Universal Time (UTC).  When you see a DateTime (when sniffing) in a Created or Expires you’ll notice that they append a “Z” (http://www.w3.org/TR/NOTE-datetime and http://www.learnmobile.net/MobileClient/Tutorials/cfWSE/) that indicates the DateTime is in UTC.  Note: 1994-11-05T08:15:30-05:00 corresponds to November 5, 1994 , 8:15:30 am, US Eastern Standard Time. 1994-11-05T13:15:30Z corresponds to the same instant. (note: http://msdn.microsoft.com/webservices/building/wse/default.aspx?pull=/library/en-us/dnglobspec/html/ws-security-addendum.asp#ws-security-addendum__toc17425559 at 5.2.1. Expiration.

  • What is your timestamp expiration set to?  5 seconds? 60 seconds?

  • Are the client and server using an NTP server (they need to be at LEAST within 30 seconds of each other or so.

  • What times are you seeing?  (What does the “conversation” look like between the two machines...use ProxyTrace or YATT.)

  • Are the machines (client and server) set to their respective timezones (in Windows Regional Settings)…some people in New York just change the system time and not the zone and the machine thinks it’s in Tijuana .

It’s may not be an issue of hours apart; it’s probably minutes or seconds from UTC.  Timestamping only works when the clocks are set and set well! :)

这不一定是工具包成熟度的问题,而只是时间戳(TTL)在Web服务上的工作方式。 就个人而言,我在GMT / Universal Time上运行我的Web服务器,以避免什至考虑时区。 无论哪种方式,它实际上都是关于世界时(UTC)的。  当您在“已创建”或“过期”中看到DateTime(嗅探时)时,您会注意到它们附加了“ Z”。 ( http://www.w3.org/TR/NOTE-datetimehttp://www.learnmobile.net/MobileClient/Tutorials/cfWSE/ ),指示DateTime以UTC表示。 注意:1994-11-05T08:15:30-05:00对应于 1994年11月5日 ,美国东部标准时间上午8:15:30。 1994-11-05T13:15:30Z对应于同一时刻。 (请注意: http : //msdn.microsoft.com/webservices/building/wse/default.aspx?pull=/library/en-us/dnglobspec/html/ws-security-addendum.asp#ws-security-addendum__toc17425559 5.2.1。到期。

  • 您的时间戳记到期时间设置为什么? 5秒? 60秒?

  • 客户端和服务器是否使用NTP服务器(它们之间的距离至少应在30秒左右)。

  • 你什么时候见 (两台计算机之间的“对话”是什么样的……使用ProxyTrace或YATT 。)

  • 机器(客户端和服务器)是否设置为各自的时区(在Windows区域设置中)? 纽约 只需更改系统时间而不更改区域,机器就会认为是? 蒂华纳 。

可能不是几个小时的问题。 距UTC可能只有几分钟或几秒钟。 只有在时钟设置好并设置好后,才能使用时间戳记! :)

UPDATE: in classic CarTalk style it turns out it it WAS the TimeZone.  If you don't tell your system WHERE it is, it can't tell you what time UTC is.

更新:以经典的CarTalk风格证明它是TimeZone。 如果您不告诉系统它在哪里,它也不会告诉您UTC是几点。

翻译自: https://www.hanselman.com/blog/wse-and-timestamping-timezones-and-tijuana

wse抓包

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值