What Namespace do I use to get the "URL" property?
Main Topics
Browse All TopicsUsing C# .NET, how can I consume a web service. I wanted to provide a text box for users to enter the IP/URL Address of the Web Service which is always the same but installed on different servers. Once entered, how can I programmically call the web service. I have only used the ASP.NET web service Visual Studio wizard to do this so I am not sure how I can do this with a C# Windows Application.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: paololabePosted on 2009-08-17 at 02:51:46ID: 25112743
There are so many method to call a ws without reference it, depending on the security level and the implementation of it, here you are some of them:
/WCF/Servi ceDetails. aspx?SID=4 8 and the following code:
1- through a querystring using WebRequest to call and reading the answer
2- through soap messages
3- through xml messages using WebRequest
4- through its wsdl
An example using wsdl definition, dowload wsdl and put in app_code, use the defined class changeng url property to point to another server
for example use http://www.webservicex.net
Select allOpen in new window