TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Thulasiram pakala
907
872
114.7k
i am using vs 2010 i want to use webapi
Dec 10 2020 9:45 PM
i am using httpclint and httpcontext name space but this one shows error missing name space i try to instal newget package manager but its not found in command prompt i try to install that version but it will path not found please help i am inew in webapi how to install tha one even i try to download httpclient dll but httpclient show name sapce error only i am using system.http..net but same error
using System.Net;
using System.Net.Http;
using System.Web.Script.Serialization;
HttpClient client = new HttpClient();
try
{
HttpContent inputContent = new StringContent(inputJson, Encoding.UTF8, "application/json");
HttpResponseMessage response = client.PostAsync(apiUrl, inputContent).Result;
if (response.IsSuccessStatusCode)
{
res = response.Content.ReadAsStringAsync().Result;
}
}
catch (Exception ex)
{
throw ex;
}
return res;
Reply
Answers (
1
)
Load XML without dealing with XSD?
Variable value null.