简体   繁体   中英

I am trying to access data from web API application(pulished at IIS) to console applicatication(VSExpress2013)

I created a console application in VS express 2013 for desktop and pulished a Web API application in IIS. Now I am trying to access data from web API application by IIS in console application(in VS express 2013). but getting errors. please anyone having experience in this may help me. all the answer with new idea or any idea are accepted you can see console application code on my github account link is https://github.com/meta-pratap-ranawat/get2016/blob/WebAPI-Client-Certificate/Program.cs

To call the webapi you will need to Use

HttpClient as described in the below link and please check the Post and Get availability on method.

Please refer this link for implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM