【发布时间】:2009-04-29 22:16:07
【问题描述】:
我们目前正在使用 asp/vbscript 通过我们的 Web 服务器调用我们的应用程序服务器上的 Web 服务。这在低负载期间非常有效。然而,在高负载期间,有时可能需要长达 25 秒才能执行如下查询:
Public Function GetValidLogon(storeKey, username)
Dim req
Set req = CreateObject("Microsoft.XMLHTTP")
Dim soapReq
soapReq = "<?xml version=""1.0"" encoding=""utf-8""?> " + _
"<soap:Envelope " + _
"xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"" " + _
"xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" " + _
"xmlns:xsd=""http://www.w3.org/2001/XMLSchema""> " + _
"<soap:Body> " + _
"<GetValidLogon xmlns=""" + namespace + """> " + _
"<storeKey>" + _
CStr(storeKey) + _
"</storeKey>" + _
"<username>" + _
CStr(username) + _
"</username>" + _
"</GetValidLogon> " + _
"</soap:Body> " + _
"</soap:Envelope>"
req.open "POST", Me.serviceAddress, False
req.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
req.setRequestHeader "SOAPAction", Me.serviceNamespace + "GetValidLogon"
req.send soapReq
Set GetValidLogon = SOAPResponseTo_GetValidLogonOutput(req.responseText)
End Function
您认为可能是什么问题?是我们用来调用 Web 服务的代码(见上文)还是只是我们使用 vbscript/asp 来调用 Web 服务的事实?会不会是 IIS 中的一些设置...?
而且每次,即使在高负载期间,当我们直接在应用程序服务器上执行 Web 服务时也总是很快。
【问题讨论】:
标签: web-services asp-classic vbscript