Wednesday, July 28, 2010

Getting the header value from the request when working with Rest with WCF

Here,

We maintain in Corporate id in header of request.

IncomingWebRequestContext request = WebOperationContext.Current.IncomingRequest;
int corporateId = Convert.ToInt32(request.Headers["corporateID"]);

No comments:

Post a Comment