I have created a small web service method using an asmx file. Here'a simplified version of it.
<WebMethod()> _
Public function DeleteFile(Byval fileID As String) as boolean
DeleteFileByID(fileID)
return true
End Sub
It's working very well but I would like to make sure the data sent back to the client doesn't get lost in the process.
I know this could be done by setting a second web service method that would be call by the client to confirm he received some data. However, I would like to know if this could be done in a single web service method.
Here's an example of what I might be looking for:
<WebMethod()> _
Public function DeleteFile(Byval fileID As String) as boolean
return true
clientAcknowledgement = 'This is what I'm loking for... How to make sure the client received the confiormation before deleting the file
if clientAcknowledgement then
DeleteFileByID(fileID)
end if
End Sub