How pass multiple body parameters in wcf rest using webinvoke method(Post or PUT)
I have written a REST Service in WCF in which I have created a method(PUT) to update a user. for this method I need to pass multiple body parameters [WebInvoke(Method = "PUT", UriTemplate = "users/user",BodyStyle=WebMessageBodyStyle.WrappedRequest)] [OperationContract] public bool UpdateUserAccount(User user,int friendUserID) { //do something return restult; } Although I can pass an XML entity of user class if there is only one parameter. as following: var myRequest = (HttpWebRequest)WebRequest.Create(serviceUrl); myRequest.Method = "PUT"; myRequest.ContentType = "application/xml"; byte[] data