Click here to Skip to main content
15,886,833 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

Please tell how to add a web API in a vb .net class Libray project.
Posted
Updated 7-May-14 21:52pm
v2
Comments
Maciej Los 8-May-14 4:09am    
What have you tried? Where are you stuck?
normalsoft 8-May-14 5:44am    
We have get one third party api for an integration and have to call a method in it. I need to build a class library and want to call the API function from this. Actually my project is windows application.

1 solution

... by adding proper reference...

Please, see: ASP.NET Web API Reference[^]
 
Share this answer
 
Comments
Maciej Los 8-May-14 7:59am    
No matter if it is independent class library or .net library. You need to add reference to this library.
How to: Add or Remove References By Using the Add Reference Dialog Box
Maciej Los 8-May-14 10:34am    
I'm not sure what kind of issue do you have... At this moment i understand that you want to use Web API in Windows Form, but i know nothing about your requirements. Please refer this: Walkthrough: Connecting to Data in a Web Service (Windows Forms)[^]
Calling a Web API From a .NET Client (C#)[^]
Use HttpClient to connect to Web service. That's all!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900