Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSXML connection to server cannot be established

Status
Not open for further replies.

MandoThrasher

Programmer
Jul 12, 2002
49
0
0
US
We're using the xmlhttp component to grab shipping data from UPS. It was working fine on our development server. When we moved the app to a server running ISA firewall the component cant get out to make a connection. We get the error "connection to server cannot be established". We've opened up everything in ISA that we know of, port 443, 80, all IP traffic, etc. What are we forgetting?
 
What errorcode (status property) does the xmlhttp object return?

codestorm
Fire bad. Tree pretty. - Buffy
Kludges are like lies.
You're not a complete programmer unless you know how to guess.
I hope I never consider myself an 'expert'.
<insert witticism here>
 
Error Type:
msxml3.dll (0x80072EFD)
A connection with the server could not be established
/telecenter/order.asp, line 397
 
All the examples are in C++, and I'm having a hard time translating to ASP.

Here's the object
Set objWinHttp = Server.CreateObject(&quot;WinHttp.WinHttpRequest.5.1&quot;)
 
i'm getting the same error but i don't have access to the server (shared hosting environment), so i can't run proxycfg. is there any other way to get around this error?

here is the code:
Code:
Set httpReq = Server.CreateObject(&quot;MSXML2.ServerXMLHTTP&quot;)
Set myXmlDoc = Server.CreateObject(&quot;MSXML2.DOMDocument&quot;)
httpReq.Open &quot;post&quot;, webServiceUrl, False
httpReq.setRequestHeader &quot;Content-Type&quot;, &quot;text/xml&quot;
httpReq.setRequestHeader &quot;SOAPAction&quot;, &quot;soapserver/soap:CreatePreview#CreateGraphics&quot;
[b]httpReq.Send soapEnv[/b]   'error line
returnSoapEnv = httpReq.responseText
 
It turned out that proxycfg did not fix it. I had to make adjustments to the firewall.

FYI - the WinHttp object does not use the standard ports(80, 8080, 443, 8443). In our case, it was using port 2317.

I'm not sure about ServerXMLhttp, but my guess is that it works the same way.

proxycfg only works with WinHttp version 5, and not 5.1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top