problem accessing web service
Hi
I am new to ASP.Net world. I am having problem adding a web reference or even running wsdl.exe. I get the error -
Error: There was an error processing 'http://www.webservicex.net/stockquote.asmx?wsdl'.
- There was an error downloading 'http://www.webservicex.net/stockquote.asmx?wsdl'.
- The underlying connection was closed: Unable to connect to the remote server
I can access the site and see the wsdl contents just fine from IE. But I can not
do so from "Add Web Reference" panel in Visual Studio.
I am trying this from my laptop at home which is on a wireless LAN. In my Lan Settings of IE I have "Automatically detect settings" checked. I don't use any proxy server to access internet.
I would appreciate any help.
Thanks
Ajay
[773 byte] By [
Ajay1234] at [2007-12-16]
I just tried using WSDL.exe to access the WSDL you specified and it worked fine. What build of the Framework are you using? The version should get printed to the console when you run the WSDL.exe tool.
Another simple test you could try is to compile and run the following program:
| |
using System; using System.Net; public class WsdlDownloadTest { public static void Main(String[] args) { WebClient client = new WebClient(); Console.WriteLine(client.DownloadString(@"http://www.webservicex.net/stockquote.asmx?wsdl")); } }
|
This little app will try to download the WSDL over HTTP just like WSDL.exe does. If it doesn't succeed, then the problem is not with WSDL.exe, but it is with the underlying HTTP request.
Daniel Roth
daniel,
i'm using the following version of WSDL.EXE which seems
a bit old:
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
i'm using it on a customer's wsdl file
which they claim to confirm to every standard in the world,
but keep getting tons of errors
messages like,
Schema validation warning: Namespace 'http://request.webservice.pnet.aami.com.au' is not available to be referenced in this schema.
Schema validation warning: Namespace 'http://exception.webservice.pnet.aami.com.au' is not available to be referenced in this schema.
i've used it once before and
was ok.
any ideas.
ta.
bruce jones.
sydney. australia.