System\ServiceModel\Channels\HttpChannelHelpers.cs (10)
169return messageEncoder.ReadMessage(buffer, bufferManager, ContentType);
214return messageEncoder.ReadMessage(inputStream, bufferManager, settings.MaxBufferSize, ContentType);
229return messageEncoder.ReadMessage(maxMessageSizeStream, settings.MaxBufferSize, ContentType);
307else if (message.Version.Envelope == EnvelopeVersion.Soap12 && !String.IsNullOrEmpty(ContentType))
309ContentType parsedContentType = new ContentType(ContentType);
385if (string.IsNullOrEmpty(ContentType))
398if (!messageEncoder.IsContentTypeSupported(ContentType))
409string statusDescription = string.Format(CultureInfo.InvariantCulture, HttpChannelUtilities.StatusDescriptionStrings.HttpContentTypeMismatch, ContentType, messageEncoder.ContentType);
410ThrowHttpProtocolException(SR.GetString(SR.ContentTypeMismatch, ContentType, messageEncoder.ContentType), HttpStatusCode.UnsupportedMediaType, statusDescription);
575message = this.messageEncoder.ReadMessage(new ArraySegment<byte>(buffer, 0, length), this.bufferManager, this.ContentType);