Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 7th, 2003, 10:53 PM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Location: Smyrna, Georgia, USA.
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.
Reply With Quote
  #2 (permalink)  
Old December 8th, 2003, 11:55 AM
cjo cjo is offline
Authorized User
 
Join Date: Oct 2003
Location: Smyrna, Georgia, USA.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #3 (permalink)  
Old January 29th, 2005, 02:33 AM
Friend of Wrox
 
Join Date: May 2003
Location: Delhi, Delhi, India.
Posts: 230
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cast Problem in Web service proxy Amit_Topper Crystal Reports 0 January 20th, 2007 02: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



All times are GMT -4. The time now is 02:28 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.