Hello everyone,
I am trying to access a webservice to post some values via
MSXML2.ServerXMLHttp
The OS used is win2003 on both machines.
When I access the local machine (A) which has the same service the call
works great.
When I access the other machine (B) that is on the same subnet, I get a
Status of 500.
sendItms ="userID=2" &"&sbID=16" &"&modID=22" &"&sesID=" &7888
'works
URL ="http://localhost/RServices/Sys/some.asmx/AddInformation"
'doesn't work
'URL ="http://remote/RServices/Sys/some.asmx/AddInformation"
Set oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")
lngResolveTimeout = 1000
lngConnectTimeout = 1000
lngSendTimeout = 1000
lngReceiveTimeout = 1000
oXMLHttp.SetTimeouts lngResolveTimeout, lngConnectTimeout,
lngSendTimeout, lngReceiveTimeout
oXMLHttp.open "POST",URL,false
oXMLHttp.setRequestHeader "Content-Type",
"application/x-www-form-urlencoded"
oXMLHttp.send sendItms
if oXMLHttp.Status >= 400 And oXMLHttp.Status <=599 Then
Response.Write(oXMLHttp.Status & " - "& oXMLHttp.StatusText)
else
Response.ContentType = "text/xml"
Response.Write "response from service " & oXMLHttp.responsexml.xml
Response.Write(oXMLHttp.status & " - "& oXMLHttp.statusText)
end if
Set oXMLHttp= nothing
Can someone tell me what can cause this and what does this mean and if
it is not asking to much, how can I resolve this?
TIA,
Ed
--
ehilario
------------------------------------------------------------------------
Posted via
http://www.codecomments.com
------------------------------------------------------------------------