How to manipulate the values that get passed into IParameterInspector.BeforeCall RRS feed

  • Question

  • Hello,

    I have read the following articles however am unable to find the answer to my query:

    I have a WCF service that takes 3 parameters.  The problem is that one of the parameters needs to accept a file path i.e. contains forward slashes.  So by the time it gets to public object BeforeCall(string operationName, object[] inputs), the inputs are already in the inputs object.

    My URI is /MethodName/{param1}/{param2}/{param3}.  The problem is that param1 is "folder/folder/test.txt" and therefore this is getting split as opposed to the entire value of param1 being put into inputs[0].

    Any ideas would be appreciated.


    Thursday, September 29, 2016 11:26 AM


All replies

  • I have found a solution:


    is now:


    This keeps the forward slashes and the path intact in param1

    Thursday, September 29, 2016 1:13 PM
  • Hi Deedee,

    Thanks for sharing your solution.

    I will suggest you mark your reply as answer, and then others who run into the same issue would find the solution easily.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, September 30, 2016 2:46 AM