Showing posts with label WebService. Show all posts
Showing posts with label WebService. Show all posts

.NET 3.0 Interview Question With Answer

What do you know about WS Security? Explain in brief

WS-Security (Web Services Security) is a communications protocol providing a means for applying security to Web services. On April 19 2004 the WS-Security 1.0 standard was released by Oasis-Open.

The protocol contains specifications on how integrity and confidentiality can be enforced on Web services messaging. The WSS protocol includes details on the use of SAML and Kerberos, and certificate formats such as X.509.

WS-Security describes how to attach signature and encryption headers to SOAP messages. In addition, it describes how to attach security tokens, including binary security tokens such as X.509 certificates and Kerberos tickets, to messages.

WS-Security incorporates security features in the header of a SOAP message, working in the application layer. Thus it ensures end-to-end security.

What is windows cardspace?

Windows CardSpace (codenamed InfoCard), is Microsoft's client software for the Identity Metasystem. CardSpace is an instance of a class of identity client software called an Identity Selector.

CardSpace stores references to users' digital identities for them, presenting them to users as visual Information Cards. CardSpace provides a consistent UI that enables people to easily use these identities in applications and web sites where they are accepted.

WCF / VS2008 Interview question

  • What is .NET 3.0 ?
  • What is WCF?
  • What are the important principles of SOA (Service oriented Architecture)?
  • What are end points, contract, address and bindings?
  • What are bindings?
  • Which specifications does WCF follow?
  • What are the main components of WCF?
  • Can you explain how End points, Contract, Address and Bindings are done in WCF?
  • What is a service class?
  • What is a service contract, operation contract and Data Contract?
  • What are the various ways of hosting a WCF service?
  • What are the major differences between services and Web services?
  • What is the difference WCF and Web services?
  • What are different bindings supported by WCF?
  • Which are the various programming approaches for WCF?
  • What is one way operation?
  • Can you explain duplex contracts in WCF?
  • How can we host a service on two different protocols on a single server?
  • How can we use MSMQ bindings in WCF?
  • Can you explain transactions in WCF?
  • What different transaction isolation levels provided in WCF?
  • Can we do transactions using MSMQ?
  • Can we have two way communications in MSMQ?
  • What are Volatile queues?
  • What are Dead letter queues?
  • What is a poison message?
  • WPF Interview questions What is WPF?
  • What is XAML?
  • What are dependency properties?
  • Are XAML file compiled or built on runtime?
  • Can you explain how we can separate code and XAML?
  • How can we access XAML objects in behind code?
  • What are the kind of documents are supported in WPF?
  • Windows workflow foundation(Vista series)
  • What is Windows Workflow Foundation?
  • What is a Workflow?.
  • What are different types of Workflow in Windows Workflow foundation?
  • When should we use a sequential workflow and when should we use state machiHow
  • do we create workflows using designer?
  • How do we specify conditions in Work flow?
  • How do you handle exceptions in workflow?
  • What is the use of XOML files?
  • How can we pass parameters to workflow?
  • AJAX Interview questions
  • What problem does Ajax solve?
  • What is Ajax?
  • What is the basic fundamental behind Ajax?
  • What is JSON?
  • How do we use XMLHttpRequest object in JavaScript?
  • How do we do asynchronous processing using Ajax?
  • What are the various states in XMLHttpRequest and how do we check the same?
  • How can we get response text?
  • How can we create XMLHttpRequest component?
  • How can we create a class in JavaScript using Atlas?
  • How do we do inheritance using Atlas?
  • How do we define interfaces using Atlas?
  • How do we reference HTML controls using Atlas?
  • Can you explain server controls in Atlas?
  • Can you explain ScriptManager control?
  • What is the importance of UpdatePanel Control?
  • Can you explain update progress control?
  • Can you explain control extenders?

What are Lambda Expressions?

With Lambda expressions you can treat code as data. In C# 1.0 / 2.0, it is common to pass strings, integers, reference types, and so on to methods so that the methods can act on those values.

Anonymous methods and lambda expressions extend the range of the values to include code blocks. This concept is common in functional programming.

What is LINQ? How its related to VS2008?

LINQ is a series of language extensions that supports data querying in a type-safe way; it will be released with the next version Visual Studio, VS2008, code-named "Orcas."

The data to be queried can take the form of XML (LINQ to XML), databases (LINQ-enabled ADO.NET, which includes LINQ to SQL, LINQ to Dataset and LINQ to Entities), objects (LINQ to Objects) etc

Web Services

Q1. what is Protocols that helps Web Services ?
Answer: Web Services used three protocols for interacting with the clients.Http-Post,Http-Get,SOAP.

Q2. what is functioning of Web Services Protocols ?
Answer: Http-Get:- This is standard protocol that helps client to communicate with server with HTTP.When client send a request to server via HTTP request and reuired parameter are attached with the querystring.

Http-Post:-This is same as Http-Get but the diffrence is that in place of sending parameters onto the URL information is send with HTTP request message with some extra information which contains Parameters and their values.This Protocols is limited to sending name/value pairs.

SOAP:-The only diffrence that its relies on XML as compares to Http-Get,Http-Post.SOAP can send not only name/value pairs but also some complex object also as for example datatypes,class,objects.SOAP can also uses request/reponse model as Http-Get,Http-post but it is not limited to Request/Response it can also send types of message.Because its uses XML that is pure text so firewalls not created so much problem because its easily converted in to HTML. .

Q3. Why do some web service classes derive from System.Web.WebServices while others do not ?
Answer: Those Web Service classes which employ objects like Application, Session, Context, Server, and User have to derive from System.Web.WebServices. If it does not use these objects, it is not necessary to be derived from it.

Q. What do you mean is WSDL ?
Answer: WSDL is an XML format for describing network services as set of endpoints operating on messages containing either document-oriented or procedure-oriented information. The operations and messages are described abstractly, and then bound to a concrete network protocol and message format to define an endpoint. Related concrete endpoints are combined into abstract endpoints (services). (Source: www.w3.org).

Q5. What is the standard you use to wrap up a call to a Web service ?
Answer: HTTP with SOAP.

Q6. Explain Web Services ?
Answer: Web services are programmable business logic components that provide access to functionality through the Internet. Standard protocols like HTTP can be used to access them. Web services are based on the Simple Object Access Protocol (SOAP), which is an application of XML. Web services are given the .asmx extension..

Q7. What are VSDISCO files ?
Answer: VSDISCO files are DISCO files that enable dynamic discovery of Web Services. ASP.NET links the VSDISCO to a HTTP handler that scans the host directory and subdirectories for ASMX and DISCO files and returns a dynamically generated DISCO document. A client who requests a VSDISCO file gets back what appears to be a static DISCO document.

Q8. What is UDDI ?
Answer: UDDI stands for Universal Description, Discovery, and Integration. It is like an "Yellow Pages" for Web Services. It is maintained by Microsoft, IBM, and Ariba, and is designed to provide detailed information regarding registered Web Services for all vendors. The UDDI can be queried for specific Web Services.

Q9. Is it possible to generate the source code for an ASP.NET Web service from a WSDL ?
Answer: The Wsdl.exe tool (.NET Framework SDK) can be used to generate source code for an ASP.NET web service with its WSDL link.
Example: wsdl /server http://api.google.com/GoogleSearch.wsdl.

Web services & Remoting

1. What is a application domain?
2. What is .NET Remoting ?
3. Which class does the remote object has to inherit
4. What are two different types of remote object creation mode in .NET ?
5. Describe in detail Basic of SAO architecture of Remoting?
6. What are the situations you will use singleton architecture in remoting ?
7. What is fundamental of published or precreated objects in Remoting ?
8. What are the ways client can create object on server in CAO model ?
9. Are CAO stateful in nature ?
10. In CAO model when we want client objects to be created by “NEW” precautions to be taken ?
11. Is it a good design practice to distribute the implementation to Remoting Client ?
12. What is LeaseTime,SponsorshipTime ,RenewonCallTime and LeaseManagerPollTime?
13. Which config file has all the supported channels/protocol ?
14. How can you specify remoting parameters using Config files ?
15. Can Non-Default constructors be used with Single Call SAO?
16. How can we call methods in remoting Asynchronously ?
17. What is Asynchronous One-Way Calls ?
18. What is marshalling and what are different kinds of marshalling ?
19. What is ObjRef object in remoting ?
20. What is a WebService ?
21. What is UDDI ?
22. What is DISCO ?
23. What is W 22
24. What the different phase/steps of acquiring a proxy object in Webservice ?
25. What is file extension of Webservices ?
26. Which attribute is used in order that the method can be used as WebService ?
27. What are the steps to create a webservice and consume it ?
28. Do webservice have state ?

Note:- if you want to Answer please send me mail nivedita2104@gmail with Question Number