Having Trouble Integrating Web API Based on Sample Code

Hi,

You have probably created a Service Reference instead of Web Reference

The service reference is the latest interface for adding references to all manner of WCF services (they may not be web services) whereas Web reference is specifically concerned with ASMX web references.

How to Add a Web Reference in Visual Studio:

1- In the Solution Explorer Right Click on References -> Add Service Reference…

2- The Add Service Reference popup will open. Click on Advanced…

3- Then click on Add Web Reference…

4- Add the URL of the ProcessesRuntime.asmx file in the URL bar. You will be asked for the credentials to access the file then you should be all set.

Let me know if this helps,
Eddy.