Wrox Programmer Forums
ASP.NET 1.0 and 1.1 Basics ASP.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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 7th, 2003, 11:53 PM
cjo cjo is offline
Authorized User
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Creating a Web Service Proxy

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:

;C:\Program Files\Microsoft Visual Studio.NET\FrameworkSDK\Bin\wsdl.exe

I'm also instructed, via my Beginning ASP.NET book, to "navigate to the directory in which your .asmx file resides, and execute this statement":

> wsdl /l:cs /o:ISBNProxy.cs http://localhost/BegASPNET/Ch18/ISBN.asmx?WSDL /n:ISBNService

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'm dead in the water, so any help would be appreciated greatly.
Old December 8th, 2003, 12:55 PM
cjo cjo is offline
Authorized User
Join Date: Oct 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts

Nevermind ... problem solved. After playing with the Path environmental variable some more, I was able to get it working. If you were examining this issue ... thanks.
Old January 29th, 2005, 03:33 AM
Friend of Wrox
Join Date: May 2003
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts


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:

WSDL URL = “http://localhost:8080/isbn.asmx”

Namespace = ISBNService

Output Directory = C:\BegASPNET11\ch16

Source File = ISBNProxy

Generate Assembly = ISBNProxy.dll

Click on Generate. This will generate the source file named “ISBNProxy.vb” in the output directory and assembly named “ISBNProxy.dll” in the folder named bin under the output directory.

After process completion a confirmation message box will appear, click “OK” and then click “cancel” to get out of the “XML Web Service Proxy Generator” dialog box.

Now Open the aspx file named “BookInfo.aspx” and click on the “start” icon on the toolbar to run this file using the web matrix web server.

If all the instructions followed, you will see the result in web browser successfully.

Charul Shukla

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cast Problem in Web service proxy Amit_Topper Crystal Reports 0 January 20th, 2007 03:28 AM
Web Service proxy to COM sangata .NET Web Services 2 October 18th, 2004 02:02 AM
Web Service Proxy - to - COM component sangata General .NET 1 October 11th, 2004 01:22 PM
Creating Web Service tact_259 .NET Web Services 0 April 5th, 2004 06:19 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.