c# - Not able to access wcf restful post method in ios -
i using post method in wcfrestful
services , using ios
not getting parameter value in wcf
method.
[operationcontract] [faultcontract(typeof(servicedata))] [webinvoke(method = "post", responseformat = webmessageformat.json,bodystyle = webmessagebodystyle.wrapped, uritemplate = "json/passtwoparamstocheckfault?firstparam={firstparam}")] string passtwoparamstocheckfault(string firstparam);
to access query string of post
request
[operationcontract] [faultcontract(typeof(servicedata))] [webinvoke(method = "post", responseformat = webmessageformat.json,bodystyle = webmessagebodystyle.wrapped, uritemplate = "json/passtwoparamstocheckfault?firstparam={firstparam}")] string passtwoparamstocheckfault(string firstparam){ if (context != null) { var result = weboperationcontext.current.incomingrequest.uritemplatematch.queryparameters["firstparam"]; } }