Hello everyone,
I am trying to access a webservice to post some values via
MSXML2.ServerXM LHttp
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.CreateOb ject("MSXML2.Se rverXMLHTTP")
lngResolveTimeo ut = 1000
lngConnectTimeo ut = 1000
lngSendTimeout = 1000
lngReceiveTimeo ut = 1000
oXMLHttp.SetTim eouts lngResolveTimeo ut, lngConnectTimeo ut,
lngSendTimeout, lngReceiveTimeo ut
oXMLHttp.open "POST",URL,fals e
oXMLHttp.setReq uestHeader "Content-Type",
"applicatio n/x-www-form-urlencoded"
oXMLHttp.send sendItms
if oXMLHttp.Status >= 400 And oXMLHttp.Status <=599 Then
Response.Write( oXMLHttp.Status & " - "& oXMLHttp.Status Text)
else
Response.Conten tType = "text/xml"
Response.Write "response from service " & oXMLHttp.respon sexml.xml
Response.Write( oXMLHttp.status & " - "& oXMLHttp.status Text)
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
------------------------------------------------------------------------