consume a web service  
Author Message
C#Student





PostPosted: Visual C# General, consume a web service Top

Hi

I added a web reference to my visual studio project.

I am trying to initialize  a web service in my C# code. I wanted to know if the  following code is correct...

Webservices.uat.xxx.com.Service1 GetPromoMapping = new Webservices.uat.xxx.com.Service1();

 

What would Service1 mean I got this code from the msdn site....

 

I am trying to retrieve a data set from this URL:

 

http://www.hide-link.com/  any suggestions on syntax.

 

Thanks.




Visual C#2  
 
 
OmegaMan





PostPosted: Visual C# General, consume a web service Top

Service1 is the name of the web service object which one initiates to begin the process of data transport between the client and server. This is not a static name, but one that is currently exposed by the target webservice...the object could have any name.