Link to home
Start Free TrialLog in
Avatar of StewartMeyers
StewartMeyersFlag for United States of America

asked on

Unable to connect error when using WSDL.EXE

I have setup a web service and need to generate the source code from the proxy.  I can access the web service just fine from the browser (set up in IIS), but get an error through WSDL.EXE.  The error I get is:

C:\Documents and Settings\Stew>wsdl http://localhost/Service/Service.asmx?WSDL
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Error: There was an error processing 'http://localhost/Service/Service.asmx?WSDL'.
  - There was an error downloading 'http://localhost/Service/Service.asmx?WSDL'.
  - Unable to connect to the remote server
  - No connection could be made because the target machine actively refused it

As I mentioned, I can access the same URL above on the same machine just fine.

Any ideas?
Avatar of drichards
drichards

The error is saying that there is no server listening on port 80.  To be clear, you say you can see the WSDL by entering the URL "http://localhost/Service/Service.asmx?WSDL" in your browser on the same machine on which you are running the WSDL utility?
Avatar of StewartMeyers

ASKER

Yes, I can see the WSDL by entering http://localhost/Service/Service.asmx?WSDL in the URL in the browser; exactly the same URL I am trying to access from the WSDL utility.  I can also access the web service fine from the browser without the WSDL parameter.  IIS is setup to listen on port 80 for the default web site.
Have you tried the WSDL utility from another machine (not the one with the server)?  That way you could 1) see if it is a local problem and 2) monitor the network traffc and see what request is being made.
Wow, what a great thought!  I executed the WSDL utility from another machine and it worked!  So what's the deal with that?  I tried rebooting but to no avail
ASKER CERTIFIED SOLUTION
Avatar of drichards
drichards

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The firewall was the problem.  I use ZoneAlarm and as soon as I disabled it, everything was fine.  This was actually not the first time I've had trouble with ZoneAlarm interference.

Thanks very much for your help!
You're welcome.  And happy coding...