What applications are suitable for Web Services?

Source: Internet
Author: User
What applications are suitable for Web Services?
Are you discouraged by the many shortcomings of Web Services? In fact, there are already many successful web services applications and more developers joining us, proving that Web Services will surely become the mainstream of the new generation of Web Information Communication. With continuous development, web services will be able to overcome its own weaknesses and be widely used. Currently, Web services are suitable for the following applications:

Wan-and Internet-based applications

To create an Rmi/IIOP application based on the binary protocol on the Internet, the firewall is generally a big problem. The client browser is likely to be behind the ISP firewall, and most firewalls can only allow external HTTP connections, therefore, if you want the client after the ISP firewall to connect to the application ports of RMI/IIOP outside the firewall, you need to change the security policy of the ISP so that the client can connect to other ports except 80. However, if the server running the RMI/IIOP application is in the DMZ after the firewall for security purposes, the connection will become more complex and need to span two firewalls.
Web Services uses the HTTP protocol and transmits XML data in plain text. Therefore, it has good firewall penetration performance.

Heterogeneous platform-based applications

XML is a cross-platform and cross-language data representation method. With the addition of common HTTP and other protocols, Web services are naturally applicable to heterogeneous platform-based applications. If your client contains different platforms, for example, you want your service to beProgramAnd can be called by VB and COM programs. You have two options: one is to provide corresponding APIs for different platforms, and the other is to provide APIs for different languages. If Web services is provided, all platforms and languages can be called!

Applications requiring strong security features

Many people think that security is a weakness of Web Services. As a matter of fact, Web services can be used in highly secure application environments through continuous improvement and the introduction of various new protocols. In addition, because Web Services uses the HTTP protocol for transmission, it can easily use a variety of mature HTTP-based security technologies.

EAI (Enterprise Application Integration)
This is one of the most promising web services applications. Most enterprises have a variety of internal application systems, which are developed by different software developers during their tenure and therefore run on different platforms and systems, the system development languages are also different. With the improvement of information automation requirements of modern enterprises, interactions and mutual communication between systems are mentioned on the agenda. Therefore, protecting original investment and reusing legacy systems is an important task for many medium and large enterprises.
Because the operating platform of legacy systems is a heterogeneous environment, the cost of enterprise application integration is generally high. However, using web services as a means of application integration will greatly reduce the consumption of integration. Web services features unrelated to the platform and language, as well as development tools in various platforms and environments are powerful tools for enterprise application integration.
In addition, when developing a new application system, you still need to consider integration with other systems. You need to consider calling the functions of other systems and being called by other systems. Using Web services as an interface for system and external communication can maintain loose coupling between new systems and other systems and maintain high scalability.

B2B applications within the industry
Applications within the industry are another direction of Web Services. In an industry, business is very similar, so it is easy to form service standards within the industry, so that all industry enterprises can abide by them together; however, the decision on how to implement services and what system to use lies in the enterprises themselves. For example, settlement services between telecom operators and transfer services between banks can all form industry standards and be published in the form of WSDL. Enterprises can select different platforms for Service implementation.

Improve the Performance of Web Services
To improve the performance of web services applications, you must consider the entire system. Note the following points:

Granularity of Web Services
Selecting the granularity of Web Services is the main means to improve the performance of web services applications. Because the transmission protocol used by Web Services is HTTP or SMTP, these protocols are for stateless connection protocols, and each request must establish a new connection. Therefore, Web services cannot be called in the same way as the database JDBC (ODBC) interface. For example, you can obtain the connection first and then the result set, and then obtain the results in one row ). Web services are suitable for applications with a large granularity. You can obtain all the information in a single call (for example, transfer funds between banks, in one call, all information including the amount and authentication will be transmitted ).

Exercise caution when using the XML interface
The interface between systems can use XML, which increases the flexibility of the system; but do not use XML as the internal interface of the system, because this will not bring any benefits, use binary as the internal interface of the system to avoid parsing and validation of unnecessary XML documents. When processing XML, convert XML into internal objects as soon as possible, XML transfer only increases system overhead.

Maximum possibility of Using Cache
Cache can be used when some information is read-only or remains unchanged for a period of time. Both the Client Cache and the server cache can greatly improve the system performance.

Summary
Once Web services are more widely used, various services can be dynamically searched and located, which provides various information interaction methods between different devices, this will greatly change the business operation model and the style of information exchange.

you can use other mature functions to provide better services, such as Google. Its search engine can be accessed through Web Services. This means that Google's powerful search functions can be easily embedded in your system, regardless of the platform on which your system runs, make Google's search engine part of your system (see http://www.google.com/apis ). Standing on the shoulders of others, after all, looks farther!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.