Last post Nov 19, 2015 03:34 PM by PatriceSc
Nov 16, 2015 04:19 AM|sudip_inn|LINK
i need to know binding wise response format for wcf.
suppose wcf service can have different binding like basic http, wshttp, tcpbinding and many more. in which cases xml format response is return to client for my service.
i like to know all the response format that a wcf service can return to client. i heard xml and json but beside this what other format exist ?
tell me binding wise response format for wcf too.
Nov 16, 2015 05:57 AM|PatriceSc|LINK
https://msdn.microsoft.com/en-us/library/ee476510(v=vs.110).aspx and scroll down to the
WebOperationContext.CreateXXX list. Also keep in mind that usually you have extensibility points to go beyond what is provided out of the box if REALLY needed.
Nov 16, 2015 07:42 AM|mgebhard|LINK
In one of your previous links with the same subject I provided a link to MSDN documentation that explains this rather clearly.
And, if you click on the left menu there's more information. Are you reading the docs?
Nov 16, 2015 08:55 AM|sudip_inn|LINK
how to send value for format from client side for this line WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters["format"];
client side code has not been shown like how client will say or pass what kind of response format it want.
discuss please. thanks
Nov 19, 2015 03:34 PM|PatriceSc|LINK
You would have a format=whatever querystring parameter. And just checking the documentation seems to confirm that:
When you are searching basic information about a class do a search about "WebOperationContext class" for example. Classes are documented on the MSDN site. Some more context could help especially if this is the kind of format you asked about earlier. It makes
me think for example about a reporting service to which you ask to render a report to the xls, pdf, docx or some other document format.