ASP.NET 1.0 and 1.1 BasicsASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

I hope this is an easy question for anybody with any experience creating Web Services.

I have an .asmx Web Service file that I'd like to create a proxy for. My understanding is that my first step is to add the wsdl.exe file to one of the "My Computer" system "Envioronmental Variables" called "Path". I have done so by appending my Path variable with the following text:

I execute this statement by creating a .bat file with the language provided above (minus the prompt and plus a "pause" at the end) and placing it in the directory with the .asmx file. Unfortunately, when I attempt to execute this .bat file by double-clicking on it, I receive the following error message:

'wsdl' is not recognized as an internal or external command, operable program or batch file.

I have tested the code you are referring and got it work after some changes. Please follow the instructions below:

Instructions to follow for Web Matrix..

Open ISBN.asmx in web matrix and run the file using web matrix inbuilt web server, in web browsers you will see something similar to “http://localhost:8080/isbn.asmx”. Copy this URL to somewhere for later use.

Now Generate the proxy Class for this web service by using “Web Service Proxy Generator” found in “Tools #61664; Web Service Proxy Generator”. On clicking this option a dialog box will appear.

In “XML Web Service Proxy Generator” dialog box fill the information as follows: