/// <summary> /// This method is used to read a message from a specified stream. /// </summary> /// <param name="stream">Specify the stream.</param> /// <param name="maxSizeOfHeaders">Specify the maximum size of the headers that can be read from the message</param> /// <param name="messageContentType">Specify the content type.</param> /// <returns>Return the System.ServiceModel.Channels.Message that is read from the stream specified.</returns> public override Message ReadMessage(System.IO.Stream stream, int maxSizeOfHeaders, string messageContentType) { Encoding encoding = Encoding.GetEncoding(this.factory.CharSet); ResponseMessageBodyWriter writer = new ResponseMessageBodyWriter(encoding, stream); Message message = Message.CreateMessage(this.MessageVersion, @"http://schemas.microsoft.com/sharepoint/soap/ICellStorages/ExecuteCellStorageRequestResponse", writer); return(message); }
/// <summary> /// This method is used to read a message from a specified stream. /// </summary> /// <param name="stream">Specify the stream.</param> /// <param name="maxSizeOfHeaders">Specify the maximum size of the headers that can be read from the message</param> /// <param name="messageContentType">Specify the content type.</param> /// <returns>Return the System.ServiceModel.Channels.Message that is read from the stream specified.</returns> public override Message ReadMessage(System.IO.Stream stream, int maxSizeOfHeaders, string messageContentType) { Encoding encoding = Encoding.GetEncoding(this.factory.CharSet); ResponseMessageBodyWriter writer = new ResponseMessageBodyWriter(encoding, stream); Message message = Message.CreateMessage(this.MessageVersion, @"http://schemas.microsoft.com/sharepoint/soap/ICellStorages/ExecuteCellStorageRequestResponse", writer); return message; }