Google News
logo
Web Services Interview Questions
The pre-requisite for deploying Web Service includes the following :
 
* Web Application Directory.
* Bin Directory.
* Web.Config File.
* Disco File.
* Webservice.
* Webservice.asmx File.
We can implement Web Services in .NET by applying HTTP handlers, which are used to interrupt requests to the .asmx files.
JAXP is a JAVA API for XML processing. It helps the JAVA application in writing, reading, transforming, and manipulating the XML data. It performs various functions such as JAX-RPC, JAXB, JAXM, JAXR, and more.
There are three different JAVA packages in the JAXB binding framework, which include the following :
 
xml.bind : It helps in defining the abstract classes and interfaces which are directly connected with the content classes.

xml.bind.util :
It consists of utility classes that can be availed by client applications with the purpose to manage marshaling, validation, and unmarshalling events.

xml.bind.helper :
It gives partial implementation for javax.xml.bind interfaces. 

These API cannot be directly used by the applications which are already executing JAXB architecture.
@WebService
@WebMethod
@SOAPBinding
This file provides endpoint details about JAX-WS web service which is deployed on tomcat.It is available at WEB-INF directory.

For example :
<?xml version="1.0" encoding="UTF-8"?>
<endpoints xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime" version="2.0">
  <endpoint
     name="HelloWorldWS"
     implementation="org.arpit.javapostsforlearning.webservice.HelloWorldImpl"
     url-pattern="/HelloWorldWS"/>
</endpoints>
 
Java API for RESTful Web Services (JAX-RS), is a set if APIs to create web service which supports REST architecture. JAX-RS is part of the Java EE6, and help developers to create REST web application easily.
MTOM (Message Transmission Optimization Mechanism) is a mechanism for transmitting large binary attachments with SOAP messages as raw bytes, allowing for smaller messages.
SOAP envelop element is the root element of a SOAP message which defines the XML document as a SOAP message.

An example :
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
  ...
  Message information
  ...
</soap:Envelope>
SOAP namespace defines the Envelope as a SOAP Envelope.

An example :
xmlns:soap=http://www.w3.org/2001/12/soap-envelope