cxf restful 怎么设置入参的编码格式
展开全部
解决梁首方法:
static async void Create()
{
var employee = new Employee { Department = "研发部", Grade = "G8", Id = "003", Name = "王五" };
var httpClient = new HttpClient();
HttpResponseMessage response = await httpClient.PostAsJsonAsync<Employee>("IP/employees/zlb"厅侍, employee);
var reply = response.Content.ReadAsAsync<Employee>橡伏数().Result;
Console.WriteLine(reply);
}
static async void Create()
{
var employee = new Employee { Department = "研发部", Grade = "G8", Id = "003", Name = "王五" };
var httpClient = new HttpClient();
HttpResponseMessage response = await httpClient.PostAsJsonAsync<Employee>("IP/employees/zlb"厅侍, employee);
var reply = response.Content.ReadAsAsync<Employee>橡伏数().Result;
Console.WriteLine(reply);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询