WebService learning

1. WebService learning

WebService is a cross programming language and cross Remote call technology of operating system platform.
The so-called cross-programming language and cross-operating platform means that the server program is written in java, and the client program can be written in other programming languages, and vice versa NS! The cross-operating system platform means that the server program and the client program can run on different operating systems.

< span style="font-family:KaiTi_GB2312">The so-called remote call is a method by which a program on a computer A can call an object on another computer B.
On the surface, WebService is an application that exposes a APIs that can be called through the Web, that is to say, the application can be called through the Web in a programming method. We call the application that calls this WebService the client, and the application that provides this WebService is the server. From a deep level, WebService is a new platform for establishing interoperable distributed applications, a platform, and a set of standards. It defines how applications can achieve interoperability on the Web. You can write Web services on any platform you like in any language you like, as long as we can query and access these services through Web service standards.
WebService platform needs a set of protocols to realize the creation of distributed applications. Any platform has its data representation method and type system. To achieve interoperability, the WebService platform must provide a set of standard type systems for communicating different types of systems in different platforms, programming languages, and component models. The Web service platform must provide a standard to describe the Web service, so that customers can get enough information to call the Web service. Finally, we must have a way to remotely call this Web service, which is actually a remote procedure call protocol (RPC). In order to achieve interoperability, this RPC protocol must also be platform and programming language independent.
To put it simplyWebService is a communication technology,software services provided on the Web through SOAP, using WSDL files Explain and register with UDDI.

Second, WebService technology

XML+XSD, SOAP and WSDL are the three major technologies that constitute the WebService platform.
XML (Extensible Markup Language) Extensible Markup Language: It is the basic format for representing data in the Web service platform. In addition to being easy to build and easy to analyze, the main advantage of XML is that it is platform-independent
XSD (XML Schemas Definition): It defines a set of standard data types, and gives a language to extend this set of data Types of. The Web service platform uses XSD as its data type system.
SOAP (Simple Object Access Protocol): After the Web service is built, you or others will call it. Simple Object Access Protocol (SOAP) provides a standard RPC method to call Web service. The SOAP specification defines the format of SOAP messages and how to use SOAP through the HTTP protocol. SOAP is also based on XML (a subset of Standard Universal Markup Language) and XSD. XML is the data encoding method of SOAP.
WSDL:used to describe the Web service and its functions,parameters and return value. WSDL is both machine-readable and It is human readable, which would be a great advantage. Some of the latest development tools can not only generate WSDL documents based on your Web service, but also import WSDL documents to generate code to call the corresponding Web service.
Call of WebService Situation

Three, the more popular WebService framework in java development

There are three WebService frameworks frequently used in java development: CXF, Axis2, Xfire(XFire has stopped updating after 2007. Officially changed its name to Apache CXF, which can also be said to be XFire2.0.)
Next introduce these three Simple use of the frame.
Simple use of CXF framework: http://blog.csdn.net/nongfuyumin/article/details/78086555
Simple use of the Axis2 framework: http://www.voidcn.com/article/p-ffccjzbd-bqh.html

The so-called remote call is a method by which a program on a computer A can call an object on another computer B.
On the surface, WebService is an application that exposes a APIs that can be called through the Web, that is to say, the application can be called through the Web in a programming method. We call the application that calls this WebService the client, and the application that provides this WebService is the server. From a deep level, WebService is a new platform for establishing interoperable distributed applications, a platform, and a set of standards. It defines how applications can achieve interoperability on the Web. You can write Web services on any platform you like in any language you like, as long as we can query and access these services through Web service standards.
WebService platform needs a set of protocols to realize the creation of distributed applications. Any platform has its data representation method and type system. To achieve interoperability, the WebService platform must provide a set of standard type systems for communicating different types of systems in different platforms, programming languages, and component models. The Web service platform must provide a standard to describe the Web service, so that customers can get enough information to call the Web service. Finally, we must have a way to remotely call this Web service, which is actually a remote procedure call protocol (RPC). In order to achieve interoperability, this RPC protocol must also be platform and programming language independent.

To put it simplyWebService is a communication technology,software services provided on the Web through SOAP, using WSDL files Explain and register with UDDI.

XML+XSD, SOAP and WSDL are the three major technologies that constitute the WebService platform.
XML (Extensible Markup Language) Extensible Markup Language: It is the basic format for representing data in the Web service platform. In addition to being easy to build and easy to analyze, the main advantage of XML is that it is platform-independent
XSD (XML Schemas Definition): It defines a set of standard data types, and gives a language to extend this set of data Types of. The Web service platform uses XSD as its data type system.
SOAP (Simple Object Access Protocol): After the Web service is built, you or others will call it. Simple Object Access Protocol (SOAP) provides a standard RPC method to call Web service. The SOAP specification defines the format of SOAP messages and how to use SOAP through the HTTP protocol. SOAP is also based on XML (a subset of Standard Universal Markup Language) and XSD. XML is the data encoding method of SOAP.

WSDL:used to describe the Web service and its functions,parameters and return value. WSDL is both machine-readable and It is human readable, which would be a great advantage. Some of the latest development tools can not only generate WSDL documents based on your Web service, but also import WSDL documents to generate code to call the corresponding Web service.

WebService call situation

There are three WebService frameworks frequently used in java development: CXF, Axis2, Xfire(XFire has stopped updating after 2007. Officially changed its name to Apache CXF, It can also be said to be XFire2.0.)

Next, we will introduce the simple use of these three frameworks.

Simple use of CXF framework: http://blog.csdn.net/nongfuyumin/article/details/78086555

Simple use of the Axis2 framework: http://www.voidcn.com/article/p-ffccjzbd-bqh.html

Leave a Comment

Your email address will not be published.