Looking for a job at Web Services? Well, you are at the right place. To get my job, candidates must impress the recruiters in gave an interview. Your interview would be the only thing standing between you and your dream job so you have to put all your efforts into the interview and make sure that you get to have the job! There are a few things that you can do to make a good impression of yourself at the interview. From dressing up to building confidence, you are going to need everything. Most of all, you should be prepared for the web services interview questions.
The thing is, you have to know what kind of questions they ask at the web services interviews and then you can prepare yourself for the questions. This would bring you confidence and help you get through the interview and get the job. Since you are here, you might be looking for the most asked web services interview questions. Well, you are at the right place and you are not going to be disappointed.
Go ahead and take a look at the following web services interview questions that you might be asked in the interview.
Web Services Interview Questions
1.Define Web Service?Ans-A web service is a kind of software that is accessible on the Internet. It makes use of the XML messaging system and offers an easy to understand, interface for the end users.
2.What is new in this field for past few years?Ans-The initiation of XML in this field is the advancement that provides web service a single language to communicate in between the RPCs, web services and their directories.
3.Do you have any idea about foundation security services?Ans-As implies from its name, these services are the foundation or basics of integration, authentication, authorization, digital signatures and encryption processes.
4.Define Entrust Identification Service?Ans-Entrust Identification Service comes from the Entrust Security Transaction Platform. This platform allows companies to control the identities that are trusted to perform transactions for Web services transactions.
5.What UDDI means?Ans-UDDI stands for Universal, Description, Discovery, and Integration. It is the discovery layer in the web services protocol stack.
6.Define Entrust Entitlements Service?Ans-This service verifies entities that attempt to access a web service. For Example, the authentication service, the Entitlements Service ensures security in business operations.
7.Define Entrust Privacy Service?Ans-As its name implies, it deals with security and confidentiality. This service encrypts data to ensure that only concerned parties can access the data.
8.Is there any special application required to access web service?Ans-No, you don’t need to install any special application to access web service. You can access web service from any application that supports XML based object request and response.
9.Can you name few free and commercial implementations for web services?Ans-The implementations I know are Apache SOAP, JAX-WS Reference Implementation, JAX-RS Reference Implementation, Metro, Apache CXF and Java 6.
11.What is REST?Ans-REST stands for Representational State Transfer. REST itself is not a standard, while it uses various standards such as HTTP, URL, XML/HTML/GIF/JPEG (Resource Representations) and text/xml, text/html, image/gif, image/jpeg, etc (MIME Types).
Web Services Interview Questions Java
1.How one can provide API to users?Ans-To provide an API to the users, one can easily do this with an “open table”. All you need to do is to write open table which is basically an XML schema that point to a web service.
2.Name the various communication channels in web service?Ans-Web service is integrated with three protocols such as HTTP/POST, HTTP/GET, and SOAP. It provides three different communication channels to clients. Client can choose any communication method as per requirements.
3.What is the alternate solution to Response Caching?Ans-One can use Data Caching (System.Web.Caching.Cach) instead of Response Caching.
4.Brief few drawbacks of using GET and POST methods to communicate with the web service?Ans-These methods are less secure and inhibit users to pass structures and objects as arguments. Also, it doesn’t allow users to pass ByRef arguments.
5.How can one access a class as a web service?Ans-To access a class as a web service, one should inherit the class from the System.Web.Services.WebService class and qualify the class with the WebService attribute.
6.How can one access the web service class method via internet?Ans-To access web service class method via internet, one should qualify a method with the WebMethod attribute.
7.How a SOAP message is structured?Ans-A SOAP message is consists of SOAP Envelope, SOAP Headers, and SOAP Body.
8.Can you name different kinds of web services?Ans-There are two types of web services in total i.e. SOAP based web service and RESTful web service.
9.What’s different in RESTful web services?Ans-The RESTful web services contains no contract or WSDL file.
10.Give me few reasons to use RESTful web service?Ans-The RESTFul web services are simple to implement and test. It supports various data formats such as XML, JSON etc.
How can you document web service?Ans-Web services are contemplated as self-documenting because they provide entire information regarding the available methods and parameters used for XML based standard, known as WSDL. One can also provide more information to explain web services via their own WebService and WebMethod attributes.
Web Services Interview Questions C#
1.What are the situations, when we need web services?Ans-web services are used when one need to implement three tier architecture in a web service. It allows handy ways to use middle tier components through internet. The main advantage of .NET Web services is that they are capable enough to communicate across firewalls because they use SOAP as transport protocol.
2.What are distributed technologies?Ans-The increasing ratio of distributed applications has raised demand for distributed technologies. It allows segmenting of application units and transferring them to different computers on different networks.
3.Differentiate between web services, CORBA and DCOM?AnsWeb services transfer/receive messages to/from application respectively, via HTTP protocol. It uses XML to encode data.–CORBA and DCOM transfer/receive messages to/from application respectively, via non-standard protocols such as IIOP and RPC.
4.What do you mean by PKI?Ans-It means Public-Key Infrastructure.
5.What tools are used to test a web service?Ans-I have used SoapUI for SOAP WS and Firefox poster plugin for RESTFul Services.
6.Differentiate between a SOA and a Web service?Ans-SOA is a design and architecture to implement other services. SOA can be easily implemented using various protocols such as HTTP, HTTPS, JMS, SMTP, RMI, IIOP, RPC etc. While Web service, itself is an implemented technology. In fact one can implement SOA using the web service.
7.Discuss various approaches to develop SOAP based web service?Ans-We can develop SOAP based web service with two different types of approaches such as contract-first and contract-last. In the first approach, the contract is defined first and then the classes are derived from the contract while in the later one, the classes are defined first and then the contract is derived from these classes.
8.If you have to choose one approach, then what will be your choice?Ans-In my point of view, the first approach that is the contract-first approach is more feasible as compared to the second one but still it depends on other factors too.
9.Give me an example of real web service?Ans-One example of web services is IBM Web Services browser. You can get it from IBM Alphaworks site. This browser shows various demos related to web services. Basically web services can be used with the help of SOAP, WSDL, and UDDI . All these, provide a plug-and-play interface for using web services such as stock-quote service, a traffic-report service, weather service etc.
10.How you define web service protocol stack?Ans-It is basically set of various protocols that can be used to explore and execute web services. The entire stack has four layers i.e. Service Transport, XML Messaging, Service Description and Service Discovery.
Web Services Interview Questions And Answers
1.Can you name some standards used in web services?Ans-The standards used in web services are WSDL (used to create interface definition), SOAP (used to structure data), HTTP (communication channels), DISCO (used to create discovery documents) and UDDI (used to create business registries).
2.Explain in brief, what DISCO is?Ans-DISCO means discovery. It groups the list of interrelated web services. The organization that provides web services, issues a DISCO file on its server and that file contains the links of all the provided web services. This standard is good when client knows the company already. Also it can be used within a local network as well.
3.Explain in brief, what UDDI is?Ans-UDDI (Universal Description, Discovery, and Integration) provides consolidated directory for web services on the internet. Clients use UDDI to find web services as per their business needs. It basically hosts the web services from various companies. In order to share web services, you need to publish it in UDDI.
4.Explain the .NET web services supported data types?Ans-.Net web services uses XML-based standards to transfer/receive information. Thus, .NET web services can only works with data types known by XML schema standard. Like FileSteam, Eventlog etc. are not recognized by the XML schema standards and hence, not supported in web services.
5.How a .NET web service is tested?Ans-Uses a test page routinely, when one calls for the URL of .asmx file in any browser. This page shows complete information regarding web services.
6.How a .NET web service is consumed?Ans-Since we know that web services are constructed on XML standards. Therefore, clients need to have complete understanding of XML-based messages to interchange messages. Clients can communicate with web services through .NET framework that offers proxy mechanisms. These proxy mechanisms have detailed information regarding data sharing within web services that can be easily used by the clients.
7.Can you name the two Microsoft solutions for distributed applications?Ans-The two Microsoft solutions for distributed applications are .NET Web Services and .NET Remoting.
8.Differentiate between .NET Web Services and .NET Remoting?Ans-As far as protocol is concerned, .NET Web Service uses HTTP, while, .NET Remoting uses any protocol i.e. TCP/HTTP/SMTP. When it comes to performance, .NET Remoting is comparatively, faster Web Service. Also, as .NET Web Services are hosted via IIS, therefore, it is far more reliable than the .NET Remoting.
9.Name the components to be published while deploying a Web Service?Ans-The components that need to be published during a web service deployment are Web Application Directory, Webservice.asmx File, Webservice.Disco File, Web.Config File and Bin Directory.
10.What are the steps performed by the client to access a web service?Ans-First of all a web reference to the web service is created by the client in his application. Then a proxy class is generated. After that an object of the proxy class is created and at last, the web service is accessed via that proxy object.
11.Can you define each of these layers of protocol stack?Ans-The Service Transport layer transfer messages between different applications, such as HTTP, SMTP, FTP, and Blocks Extensible Exchange Protocol (BEEP). The XML Messaging layer encodes messages in XML format so that messages can be understood at each end, such as XML-RPC and SOAP. The Service Description layer describes the user interface to a web service, such as WSDL. The Service Discovery layer centralizes services to a common registry and offer simple publish functionality, such as UDDI.
12.Define XML – RPC?Ans-It is a protocol that makes use of XML messages to do Remote Procedure Calls.
13.Define SOAP?Ans-SOAP is an XML based protocol to transfer between computers.
14.Define WSDL?Ans-It means Web Services Description Language. It is basically the service description layer in the web service protocol stock. The Service Description layer describes the user interface to a web service.
15.What kind of security is needed for web services?Ans-The security level for web services should be more than that of what we say Secure Socket Layer (SSL). This level of security can be only achieved from Entrust Secure Transaction Platform. Web services need this level of security to ensure reliable transactions and secure confidential information .
Conclusion – So these are some of the most popular web services interview questions that you would be asked. You should know that these may not be the only questions that would be asked in the web services interview but we mentioned them so that you can get an idea about what kind of questions there would be and how you should answer those questions as well. Make sure you practice this above-mentioned interview and be prepared for the upcoming web services interview.
Here we say goodbye and we hope our article was helpful for you. Best of luck!