小编fis*_*lom的帖子

如何在经典 ASP 中延迟执行部分脚本?

我有一个经典的 ASP 页面,它调用外部 Web 服务。实际过程是这样的:

'[Part0 : Call the external webservice]
wsResponse = setConfirmation(...)


' [PART1: external webservice is responding]    
if not wsResponse is Nothing then
 '....Process the response from the webservice according to wsResponse
  code =wsResponse.getCode
  if code = 'C' then
     'We confirm the transaction and call a storedprocedure in SqlServer
  else
    'if code is different from C, we assume, the transaction status is 'not confirmed' or 'cancelled'

 '[PART2: no answer from external webservice] 
Else 
  'so wsReponse is nothing..We …
Run Code Online (Sandbox Code Playgroud)

recursion sleep webservice-client asp-classic thread-sleep

1
推荐指数
1
解决办法
4844
查看次数