How to determine the request protocol?

The following are the same for both SOAP and HTTPPOST:

((System.Web.Services.WebService)(this)).Context.Request.RequestType =
"POST"
((System.Web.Services.WebService)(this)).Context.Request.HttpMethod =
"POST"

The only difference I can tell so far is:

HTTPPOST:

((System.Web.Services.WebService)(this)).Context.Request.ContentType =
"application/x-www-form-urlencoded"
((System.Web.Services.WebService)(this)).Context.Request.Form.HasKeys
() = true

SOAP:

((System.Web.Services.WebService)(this)).Context.Request.ContentType
="text/xml; charset=utf-8"
((System.Web.Services.WebService)(this)).Context.Request.Form.HasKeys
() = false

Is there a better way?

~Gina_M~

Reply via email to