c# - How to implement Accept header modification to text/xml using JSON -


i'm trying accept xml document that's post'ed in body of request rest endpoint. understand accept request-header field should this:

accept: application/json, text/xml 

however, don't know need implement in order work needs to. whwnever test web service, shows content/type:

content-type →application/json; charset=utf-8

what need content-type can include text/xml mime?


Comments