Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Unable to connect error when using WSDL.EXE

Posted on 2007-10-01
7
Medium Priority
?
971 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:StewartMeyers
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:drichards
ID: 19995288
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?
0
 

Author Comment

by:StewartMeyers
ID: 19995364
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.
0
 
LVL 19

Expert Comment

by:drichards
ID: 19995408
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.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:StewartMeyers
ID: 19995874
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
0
 
LVL 19

Accepted Solution

by:
drichards earned 2000 total points
ID: 19996063
The only other thing I can think of would be to try back on the server machine where things weren't working and substitute the machine's name or address for localhost:

    http://<machine name>/Service/Service.asmx?WSDL
or
    http://<ip address>/Service/Service.asmx?WSDL

You'll have to put in the correct values.

Also, do you have a local firewall enabled?  A lot of them allow certain apps through (like the browser) and block others.  Though they usually ask if you want to allow the new app to access the network.  I don't have any trouble running the wsdl utiity against web services on my local box.  Very odd.
0
 

Author Comment

by:StewartMeyers
ID: 19996096
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!
0
 
LVL 19

Expert Comment

by:drichards
ID: 19996125
You're welcome.  And happy coding...
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question