6 writes to ContentType
System.Web.Services (6)
System\Web\Services\Protocols\SoapClientProtocol.cs (3)
521message.ContentType = ContentType.Compose(ContentType.ApplicationSoap, RequestEncoding != null ? RequestEncoding : Encoding.UTF8, soapAction); 523message.ContentType = ContentType.Compose(ContentType.TextXml, RequestEncoding != null ? RequestEncoding : Encoding.UTF8); 606message.ContentType = response.ContentType;
System\Web\Services\Protocols\SoapServerProtocol.cs (3)
345message.ContentType = Request.ContentType; 677message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8); 765message.ContentType = ContentType.Compose(helper.HttpContentType, Encoding.UTF8);
13 references to ContentType
System.Web.Services (13)
System\Web\Services\Protocols\SoapClientProtocol.cs (5)
265Encoding enc = message.SoapVersion == SoapProtocolVersion.Soap12 ? RequestResponseUtils.GetEncoding2(message.ContentType) : RequestResponseUtils.GetEncoding(message.ContentType); 529request.ContentType = message.ContentType; 615bool isSoap = ContentType.IsSoap(message.ContentType); 623throw new InvalidOperationException(Res.GetString(Res.WebResponseContent, message.ContentType, HttpContentType) +
System\Web\Services\Protocols\SoapServerProtocol.cs (8)
272Encoding enc = RequestResponseUtils.GetEncoding2(message.ContentType); 573if (!ContentType.IsSoap(message.ContentType)) 574throw new SoapException(Res.GetString(Res.WebRequestContent, message.ContentType, helper.HttpContentType), 590if (version == SoapProtocolVersion.Soap11 && !ContentType.MatchesBase(message.ContentType, helper.HttpContentType)) 591throw new SoapException(Res.GetString(Res.WebRequestContent, message.ContentType, helper.HttpContentType), 681Response.ContentType = message.ContentType; 783Response.ContentType = message.ContentType; 857Encoding enc = RequestResponseUtils.GetEncoding2(Message.ContentType);