none
How many different type of response format exist for wcf RRS feed

  • Question

  • 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.

    thanks

    Saturday, November 14, 2015 6:25 PM

Answers

  • Hi Mou_Kolkata,

    According to your description, as far as I know, we can define a custom binding with

    other message encoding.

    Also, we can use the restful WCF Service which is support xml and JSON format.

    It will return a xml format response to your client.

    Like below:

           [OperationContract]
           [WebInvoke(Method = "POST",ResponseFormat=WebMessageFormat.Xml)]

    For more information, please refer to the following articles:

    1.Custom Message Encoder: Custom Text Encoder

    2.WCF Extensibility – Message Encoders

    Best Regards,

    Grady

    • Proposed as answer by Sudip_inn Monday, November 16, 2015 9:19 AM
    • Marked as answer by Grady_DongModerator Tuesday, November 24, 2015 2:49 AM
    Monday, November 16, 2015 8:46 AM
    Moderator

All replies