ש לי בעיה חמורה...

ליאור ב

New member
ש לי בעיה חמורה...

עם WSE 2.0 יצרתי אפליקצית Windows שעושה שימוש ב DIME. יש לי בעיה כאשר זמני הלקוח והשרת אינם תואמים. פתרתי את הבעיה באופן חלקי ע"י שינוי הטולרנס ל 24 שעות. אבל כאשר הלקוח הוא יותר מ 5 דקות אחורה מהשרת (שרת 14:00 לקוח 13:50) אז אני מקבל הודעה שאומרת שההודה לא יכולה להווצר בעתיד. מי יודע איך פותרים את הבעיה הזאת? תודה מראש. ליאור.
 

ליאור ב

New member
Sorry for the delay

Here is the error: Creation time in the timestamp can not be in the future And some code:
Private Function GetChunkFromDime(ByVal intHeaderID As Int64, ByVal intChunkNumber As Integer) As MemoryStream Dim lobjProxy As MyService.MyServiceWse = MyService.MyServiceWse 'Set the web service URL. lobjProxy.Url = Me.WebServiceURL lobjProxy.RequestSoapContext.Security.Timestamp.TtlInSeconds = -1 lobjProxy.GetUpdatesChunk(intHeaderID, intChunkNumber) If lobjProxy.ResponseSoapContext.Attachments.Count = 1 Then Return lobjProxy.ResponseSoapContext.Attachments.Item(0).Stream End If Return Nothing End Function​
Thank you for any help you can provide.
 
למעלה