[quoted text, click to view] On Oct 31, 10:40 am, "McKirahan" <N...@McKirahan.com> wrote:
> Could you post stripped down versions the code for
> "Service A" and "Service B" that isolate your problem?
Well, at present, Service B is simply an asp page that returns raw XML
text, though it 'USED' to be a 'real service'. But the raw xml output
exhibits the exact same behavior, so I think the content of page B is
irrelevant. Additionally, if I point Service A to a version of
Service B running on a different server, then both Service A and
Service B work as expected. The problem is not, I think, an issue
with the design of the services, but with a limitation of ASP itself
(Though I'm willing to be wrong on that point)
Service A is just an asp page that takes in a parameter and builds
some xml. But it calls a function which fires off the call to Service
B. The line, httpReq.Send, will error out with a timeout error at
the fourth number set in the httpReq.setTimeouts ... in this case
80000ms.
The function looks like this:
Function getNewSessionDataFromWebService()
Dim webServiceUrl, httpReq, node, myXmlDoc
On Error Resume Next
webServiceUrl = "http://sandbox/services/rtSessionAdd.asp?
authkey={75DA987E-8811-40BA-B284-E8B54EE60565}"
Set httpReq = Server.CreateObject("MSXML2.ServerXMLHTTP")
' resolve, connect, send, receive - in milliseconds
httpReq.setTimeouts 1000, 60000, 10000, 80000
httpReq.Open "GET", webServiceUrl,false
response.write "100 - " & err.number & " - " &err.description &
"<br>" & vbcrlf
httpReq.Send
response.write "101 - " & err.number & " - " &err.description &
"<br>" & vbcrlf
Set myXmlDoc =Server.CreateObject("MSXML.DOMDocument")
myXmlDoc.load(httpReq.responseBody)
Set httpReq = Nothing
Set node = myXmlDoc.documentElement.selectSingleNode("Session/ID")
If Not node Is Nothing Then
getNewSessionDataFromWebService = node.text
Else
getNewSessionDataFromWebService = ""
End If
On Error Goto 0
End Function