I have a Web Service with one WebMethod for which return value is boolean.
It accepts XML file as string and process data. How can I first return status as true and then call the ProcessData method.
As the processing data takes time I need to return true first and then process the data.
Please help.
[webmethod]
Public function receiveData(ByVal xmlstr as string) as boolean
dim status as boolean=false
try
if xmlstr<>"" then
ProcessData(xmlstr)
status=true
end if
catch
end try
return status
end function