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