back soft

مطالب مرتبط با «web api 2 routing not working» در back soft | نویسنده: استخدام کار

Webapi 2 not give list in XML

Vote count: 0 public IEnumerable GetWords() { retu db.Words.ToList(); } I need this output in XML using webapi2; i already google and try var appXmlType = config.Formatters.XmlFormatter.SupportedMediaTypes.FirstOrDefault(t => t.MediaType == "text/xml"); config.Formatters.XmlFormatter.SupportedMediaTypes.Remove(appXmlType); It gives data only in JSON. also I update following package: Microsoft.AspNetCore.Mvc.Formatters.Xml But how can I get it in XML. Thanks in advance. asked 39 secs agosurzo4368 Let's block ads! بخوانید...

ادامه مطلب

برچسب‌های مرتبط

web api 2 not found | web api 2 not working | web api 2 not working 404 | web api 2 cors not working | web api 2 404 not found | web api 2 method not allowed | web api 2 routing not working | web api 2 push notifications | web api 2 controller not found | web api 2 return not found