---
title: "Write the names of public properties defined in the WebService class."  
description: "Write the names of public properties defined in the WebService class."  
author: "Sumit Kesarwani"  
published: 2014-08-26  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2046/write-the-names-of-public-properties-defined-in-the-webservice-class  
category: "wcf"  
tags: ["wcf"]  
reading_time: 2 minutes  

---

# Write the names of public properties defined in the WebService class.

## There are many properties defined in the WebServices class:

**Application -** Obtains the application object for the current HTTP request

**Context -** Obtains the HttpContext object for the current request, which encapsulates all HTTP-specific context used by the HTTP server to process Web requests

**Server -** Obtains the HttpServerUtility object for the current request

**Session -** Obtains the HttpSessionState object for the current request

**SoapVersion -** Obtains the version of the SOAP protocol used to make the SOAP request to a Web service

**User -** Obtains the Server User Object. This property can be used to authenticate whether a user is authorized to execute the request.

## Answers

### Answer by Sumit Kesarwani

## There are many properties defined in the WebServices class:

**Application -** Obtains the application object for the current HTTP request

**Context -** Obtains the HttpContext object for the current request, which encapsulates all HTTP-specific context used by the HTTP server to process Web requests

**Server -** Obtains the HttpServerUtility object for the current request

**Session -** Obtains the HttpSessionState object for the current request

**SoapVersion -** Obtains the version of the SOAP protocol used to make the SOAP request to a Web service

**User -** Obtains the Server User Object. This property can be used to authenticate whether a user is authorized to execute the request.


---

Original Source: https://www.mindstick.com/interview/2046/write-the-names-of-public-properties-defined-in-the-webservice-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
