Pass the resource URI as parameter to a WCF Service Defnition for REST based API(WebInvoke Receiver Methods) -


i need base-uri ( or of resource) triggers operation include in response.

    [webinvoke(method = "get", uritemplate = "users/user",bodystyle=webmessagebodystyle.wrappedrequest)] [operationcontract] public bool readuseraccount(user user,int taskid, **string baseurl**) {  //do - include further subsequent resource urls of base url  return result; } 

understood operation context of wcf framework.

operationcontext.current.requestcontext.requestmessage.headers.to 

reads url inside service implementation.


Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -