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"];     } } 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -