Web Services and SOAP
Web Applications and Web Services.
Web Service is a software, that serves data in any format (XML,JSON) through some kind of web interface and that interface can be called Application Programing Interface (API).Web application is a software application that run on a remote server. In most cases browsers are used to access Web Applications, over network, such as internet.
Difference Web Application and Web Services.
Web Service is the Server and Web application is the Client.Web service refers to software, that serves data in any format (XML/JSON etc.) through some kind of web interface. That interface can be called API (Application Programming Interface). REST and SOAP are ways to design the API.
Application is the software that is using this API provided by the web service.
The deployment of the web application over web service is very limited and the web service can be globally.
A web service is a collection of open protocols and standards used for exchanging data between applications or systems.
Web Services allows different applications to talk to each other and share data and services among themselves. Other applications can also use the services of the web services. ... So, Web services is used to make the application platform and technology independent.
Examples Types of Web Services.
- SOAP (Simple Object Access Protocol).
- WSDL (Web services description language).
- A web service cannot be used if it cannot be found.
- Universal Description, Discovery, and Integration (UDDI).
- project management.
- computer-aided design.
- video editing and point-of-sale.
Web Services Description Language (WSDL)
WSDL is an XML based interface language format for describing functionality provided by the web service. It provide the readable description how the service can be called, and what parameters are expected, and what data structure it returns.And client program connecting to the Web service can read the WSDL file to determine what operations are available on the server.
.
Simple Object Access Protocol (SOAP)
SOAP is an XML-based protocol for accessing web services over HTTP. It has some specification which could be used across all applications.Its purpose is to provide extensibilty, neutrality and independence. It uses XML information set for its message format and relies on application layer protocol, most often Hyper Text Protocol(HTTP) or Simple Mail Transfer Protocol (SMTP), for message negotiation and transmission.
SOAP messages Attachments
The SOAP Messages with attachments use the SOAP Messages with Attachments protocol and are encoded using the MIME Multipart/ Related structure.The following figure shows the structure of the SOAP Messages with attachments:
This is a description about each part of SOAP messages with attachments.
What is JAX-WS ?
JAX-WS is a java programming language API spec that provides support in creating web services particularly SOAP services. JAX-WS is one of the JAVA XML programming APIs. It is part of the JAVA EE platform.This JAX-WS annotation can be used in 2 ways.
If we are annotating this over a class, it means that we are trying to mark the class as the implementing the Web Service, in other words Service Implementation Bean (SIB). Or we are marking this over an interface, it means that we are defining a Web Service Interface (SEI), in other words Service Endpoint Interface.
Now lets see the java program demonstrating both of the mentioned ways:
Comments
Post a Comment