Problems using "Add Web Reference"

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi There

I am having some difficulty referencing Web Services. I am using Visual Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET Windows Application that consumes an external Web Service

When I endeavour to use the "Add Web Reference" and select a URL which I know returns a WSDL file, I get prompted with the "Open, Save, Cancel or More Info" dialog box that I am familiar with in IE. If I select Open, it opens it as a file within VS.NET. Saving, saves it locally, but none of them display the file in the Web Reference display page, and hence allow me to set a reference

Any help with this puzzling problem would be most appreciated

Regards
Trevor Andrew
 
Are you making the reference to the actual wsdl or just the doc that has the
wsdl?


Trevor Andrew said:
Hi There,

I am having some difficulty referencing Web Services. I am using Visual
Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NET
Windows Application that consumes an external Web Service.
When I endeavour to use the "Add Web Reference" and select a URL which I
know returns a WSDL file, I get prompted with the "Open, Save, Cancel or
More Info" dialog box that I am familiar with in IE. If I select Open, it
opens it as a file within VS.NET. Saving, saves it locally, but none of them
display the file in the Web Reference display page, and hence allow me to
set a reference.
 
Hi Scott

As an example, I'm typing in the following URL

http://ws.microsoft.com/mscomservice/mscom.asmx?wsd

Which is shown as an example URL to retrieve a wsdl definition from some sample web services at Microsoft. If I save the document, it appears to be a WSDL document. Am I doing something wrong here

Regards
Trevor Andre

----- Scott M. wrote: ----

Are you making the reference to the actual wsdl or just the doc that has th
wsdl


Trevor Andrew said:
Studio .NET 2003, with the .NET Framework 1.1, and trying to write a VB.NE
Windows Application that consumes an external Web Serviceknow returns a WSDL file, I get prompted with the "Open, Save, Cancel o
More Info" dialog box that I am familiar with in IE. If I select Open, i
opens it as a file within VS.NET. Saving, saves it locally, but none of the
display the file in the Web Reference display page, and hence allow me t
set a reference
 
You are using the correct format. Are you sure you have a web server
running on the machine you are developing on?


Trevor Andrew said:
Hi Scott,

As an example, I'm typing in the following URL:

http://ws.microsoft.com/mscomservice/mscom.asmx?wsdl

Which is shown as an example URL to retrieve a wsdl definition from some
sample web services at Microsoft. If I save the document, it appears to be a
WSDL document. Am I doing something wrong here?
 
Hi Scott,

Yes, I am running a web server on the machine I am developing on, but I'm not quite sure I understand why that is relevant to what I'm doing? At the moment, I'm trying to address a remote web service at Microsoft, as per the quoted URL below.

My development environment is XP PRO, VS.NET 2003, .NET Framework 1.1. IIS is running on the box, and I have previously successfully run some local web service examples successfully.

Could it be something to do with my proxy server? I have an ISA Server between this workstation and the Internet.

I've seen suggestions to use the WSDL.exe utility to create a proxy or stub, but don't appear to have it installed on my machine. I assume that it's part of the .NET Framework SDK. Would you suggest using this to try and get it to work?

Regards,
Trevor Andrew

----- Scott M. wrote: -----

You are using the correct format. Are you sure you have a web server
running on the machine you are developing on?


Trevor Andrew said:
Hi Scott,
sample web services at Microsoft. If I save the document, it appears to be a
WSDL document. Am I doing something wrong here?
Regards, Trevor Andrew
----- Scott M. wrote: -----
Are you making the reference to the actual wsdl or just the doc that
has the
wsdl?
 
I have made a test Windows Form application and successfully made a
reference to that sample wsdl document you posted earlier. I am running XP
Pro, VS 2002 however. Could this be a VS 2003 bug?


Trevor Andrew said:
Hi Scott,

Yes, I am running a web server on the machine I am developing on, but I'm
not quite sure I understand why that is relevant to what I'm doing? At the
moment, I'm trying to address a remote web service at Microsoft, as per the
quoted URL below.
My development environment is XP PRO, VS.NET 2003, .NET Framework 1.1. IIS
is running on the box, and I have previously successfully run some local web
service examples successfully.
Could it be something to do with my proxy server? I have an ISA Server
between this workstation and the Internet.
I've seen suggestions to use the WSDL.exe utility to create a proxy or
stub, but don't appear to have it installed on my machine. I assume that
it's part of the .NET Framework SDK. Would you suggest using this to try and
get it to work?
Regards,
Trevor Andrew

----- Scott M. wrote: -----

You are using the correct format. Are you sure you have a web server
running on the machine you are developing on?


Hi Scott,
from some
sample web services at Microsoft. If I save the document, it appears to be a
WSDL document. Am I doing something wrong here? doc that
has the
 
Back
Top