Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services 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 May 2nd, 2007, 04:25 PM
Registered User
Join Date: Mar 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to access web service in win forms

I have written a web service in C#. I want to consume that web service in C# winforms.
How can i do this?.
Can anybody help me out on this with sample coding?.
How can i access Web Service through coding instead of wizards styles(add web reference)...

Thanks in advance!!!!.....


Saravanan K

Old May 2nd, 2007, 09:54 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Why not use the proxy that gets created for you when you add a web reference?

If you want to learn how to "talk" to the web service... add a web reference, then look at the proxy class generated. It will be the best example of the code that you would write to talk to your web service.

Old May 5th, 2007, 06:49 AM
Registered User
Join Date: Aug 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

These are the steps you need to follow...
1. With the help of WSDL.exe create the proxy.
2. Add this proxy class in your project.
3. Create the object of the proxy class.
4. Invoke the method.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Theme/skin win forms controls planoie .NET Framework 2.0 3 August 21st, 2008 04:28 PM
specifing the time intraval in win service srkarthik_82 General .NET 0 January 8th, 2007 05:24 AM
Access underlying HTTP headers in web service. glen205 .NET Web Services 0 November 27th, 2006 07:36 PM
Win 2k3 service prabodh_mishra VB How-To 1 October 27th, 2005 02:37 AM
Start win.. service in folder other than System32 zaheersharief General .NET 2 April 18th, 2005 12:50 AM

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