K
Keith McDonald
We need to invoke a webservice method that will call an sp that may run
up to 1 hour so we want to start the sp then let the client continue
working. I have read about the OneWay:=true but calling the webservice
it seems to still wait until the service is finished before returning
to the client. Any ideas? - Code below..
In the webservice we define this method:
<SoapDocumentMethod(OneWay:=True), _
WebMethod(EnableSession:=True, Description:="STX processing of
imported invoices.")> _
Public Sub StartProcessingInvoices()
--code to run the sp which works as needed
End Sub
In the codebehind aspx page:
'Final call to webservice to start processing inported data
Dim wsInvoices As New STXProcessInvoices
Dim resultMessage As String
wsInvoices.StartProcessingInvoices()
...continue processing and displaying the aspx results page
to the client
up to 1 hour so we want to start the sp then let the client continue
working. I have read about the OneWay:=true but calling the webservice
it seems to still wait until the service is finished before returning
to the client. Any ideas? - Code below..
In the webservice we define this method:
<SoapDocumentMethod(OneWay:=True), _
WebMethod(EnableSession:=True, Description:="STX processing of
imported invoices.")> _
Public Sub StartProcessingInvoices()
--code to run the sp which works as needed
End Sub
In the codebehind aspx page:
'Final call to webservice to start processing inported data
Dim wsInvoices As New STXProcessInvoices
Dim resultMessage As String
wsInvoices.StartProcessingInvoices()
...continue processing and displaying the aspx results page
to the client