By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,886 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,886 IT Pros & Developers. It's quick & easy.

Need way to confirm web method response was received by client

P: n/a
Hi all,

I have a problem with a smart client in that when it makes a call to a web
service, the server needs some kind of confirmation that the response has
been received by the client successfully. The problem seems to be mostly
with people out and about with 3G cards (high speed internet connections) in
that the connection may go a bit funny and the client gets the 'The
underlying connection was closed: An unexpected error occurred on a receive'
exception. However, the web service has completed the method without any
problems, but the client believes it failed.

Can anyone tell me how they would get round this problem? I need some way
to tell if the client got the response from the server otherwise I want to
roll back the transaction.

Thanks in advance

Jun 5 '06 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Hi Andy,

Thank you for posting.

As for the way to confirm webmethod response from client to server, I'm
afraid there is not such support in webservice model due to the nature of
webservice. A webmethod call is just request/response based, after the
server send back response, he no longer know anything about the client
(event there occurs exception). Therefore, the only way to inform the
server of any new updated info is to send another webservice request. In
your scenario, since you just want to send a notify to the server about the
previous executed method's result, I think you can add a One-Way webmethod
call which is particularily used for inform the server of the main
webmethod's execution result.


Steven Cheng
Microsoft Online Community Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure!
(This posting is provided "AS IS", with no warranties, and confers no

Jun 6 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.