Re: Webservice or not Advice
- From: "Paul Glavich [MVP ASP.NET]" <glav@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 May 2005 23:07:31 +1000
Http is not a guarantted protocol though. You may want to consider sending a
'hash' code of the dataset (or even the string representation of it, as
longas the client does the same) as a aecondary argument. The client can
also calculate a hash value once the dataset is received. If the 2 values
match, then the dataset is valid and has been fully transferred. The client
can also send that hash code back to the server as an acknowledgement that
everything has been received ok.
--
- Paul Glavich
ASP.NET MVP
ASPInsider (www.aspinsiders.com)
"Klaus H. Probst" <usenet001@xxxxxxxxxxxxx> wrote in message
news:%23wVuMmeWFHA.2256@xxxxxxxxxxxxxxxxxxxxxxx
> The call should be "atomic" in that the HTTP request should not return
until
> everything is downloaded to the client, so I wouldn't worry about that
> specifically.
>
> If the dataset is big then you might also want to compress it (after all,
> XML compresses very well) and return it as an array of bytes. This will
save
> you quite a bit of bandwidth and time.
>
>
> --
> Klaus H. Probst, MVP
> http://www.simulplex.net/
>
>
> "JJ" <JJ@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:1AD41464-ACC1-41B8-A7F4-406D51A095D5@xxxxxxxxxxxxxxxx
> > Hi,
> >
> > I have a situation where I have a Rich Client Win Form App built in
C#
> > and I need to transport a dataset across the internet to a webservice in
> > asp.net. Database is Sql Server sitting on the same webserver. Now the
> > problem resides in the connection type. He is using a satellite
connection
> to
> > internet. I'm wondering since im calling up a webservice to pass a
> dataset,
> > there might be a lag that causes the dataset not to be completely sent.
> What
> > method or design should I use in order to make sure dataset arrives to
the
> > webservice completely? The dataset will be about 20 to 25 records with
20
> > fields per record. Also how can I make sure that the remote database
gets
> > updated from the dataset? Should I have a method in webservice that
takes
> one
> > or two records from dataset and remotely checks database for existence?
> Does
> > anybody have any code examples that basically do what I'm talking about
> here?
> >
> > Thanks,
> >
> > JJ
>
>
.
- References:
- Re: Webservice or not Advice
- From: Klaus H. Probst
- Re: Webservice or not Advice
- Prev by Date: Re: WebServices or COM+
- Next by Date: RE: GUI for UAB - Updater Application Block
- Previous by thread: Re: Webservice or not Advice
- Next by thread: Error registering COM+
- Index(es):
Relevant Pages
|