Hi Kenny,
Where are the duplicates coming from? Is the same request being made by
the same client, over and over (replay issue)? or are the duplicates coming
from different clients coming up with the same data (concurrency control
issue)?
How are you createing an Asynchronous method? Asynchronous is a
much-misunderstood term that often means both "called with no client side
wait" and "fire and forget". The automatic proxies allow the first
approach to be done by calling BeginXXMethod on the client side. Another
way to make this happen is to make the method a one-way method by
attributing the void method on the server side as one-way. Which is it in
your case?
In either case, it is the designers responsibility to make sure that a
multi-user, multi-location client-server system is immune to replay issues
(some call these inadvertent attacks). Typically, each request is
accompanied by a serial number that is unique to each caller or is globally
unique. The server side takes the responsibility for ignoring requests
that have already been made (and optionally returning the original response
- strongly recommended).
For concurrency related issues, the server/clients protocol must include
elements that allow you to distinguish overlapping requests to update or
add the same item, and rejecting all but the first one. Alternately, the
protocol should provide a voluntary locking mechanism that lets a caller
request permission to update/add something, perform the add, and then
release the lock. Locks typically have a time limit so they can
auto-expire.
None of these come for free when you say "one-way" - you have to plan on
some means for providing these abilities/checks/preventions when you build
a multi-client/multi-location distributed system.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
>Thread-Topic: Async WS not working well
>thread-index: AcTXLfSTN9Op+BoNSJ+VpfbELUa1sA==
[quoted text clipped - 17 lines]
>Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:26908
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
[quoted text clipped - 22 lines]
>
>Any sug about this behavior