Wcf restful service is not accepting special characters (#) as input parameter RRS feed

  • Question

  • Hi,

    I need to write the service with '#' special character.

    I am getting input as Follows:

    Parameter1: (x1)(x2)(x3)EN#(y1)(y2)(y3)EN#(z1)(z2)(z3)EN#Q

    I am written RestfulService method like,

    [WebInvoke(Method = "*", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "{strReadingData}")]
    string ReadData(string strReadingData, string strDate);

    But, I am able to read the value as '(x1)(x2)(x3)EN' only. However, I am unable to get the value after the'#' character

    Please suggest any other approaches to complete this requirement.

    Please Note: Client is calling my service through electronic device.

    Please help.

    Thanks & Regards,

    Monday, April 6, 2015 4:49 AM


All replies