ASP.NET Web Service Basics mesameergaikwad

ASP.NET Web Service Basics mesameergaikwad


Follow me Sameer Gaikwad then follow the link below! ?? ??day challenge ?? Reach out to me on Twitter or Linkedin or Blogspot if you want to discuss this further. :)


Check out my blog post's Original

Introduction

We can now use ASP.NET to create Web Services based on industrial standards including XML, SOAP, and WSDL.

A Web Service is a?software program that uses XML to exchange information with other software via common internet protocols. In a simple sense, Web Services are a way of interacting with objects over the Internet.

A web service is

  • Language-Independent.
  • Protocol Independent.
  • Platform Independent.
  • It assumes a stateless service architecture.
  • Scalable (e.g. multiplying two numbers together to an entire customer-relationship management system).
  • Programmable (encapsulates a task).
  • Based on XML (open, text-based standard).
  • Self-describing (metadata for access and use).
  • Discoverable (search and locate in registries)- the ability of applications and developers to search for and locate desired Web services through registries. This is based on UDDI.

Web Service History

  • Microsoft coined the term "Web services" in June 2000, when the company introduced Web services as a key component of its .Net initiative, a broad new vision for embracing the Internet in the development, engineering, and use of software.
  • As others began to investigate Web services, it became clear that the technology could revolutionize (be the next stage in) distributed computing.
  • Web services en com a set of related standards that can enable any two computers to communicate and exchange data via a network, such as the Internet.
  • The primary standard used in Web services is the Extensible Markup Language (XML) developed by the World Wide Web Consortium (W3C).
  • Developers use XML tags to describe individual pieces of data, forming XML documents, which are text-based and can be processed on any platform.
  • XML provides the foundation for many core Web services standards (SOAP, WSDL, and UDDI) and vocabularies (XML-based markup for a specific industry or purpose).
  • Almost every type of business can benefit from Web services such as expediting software development, integrating applications and databases, and automating transactions with suppliers, partners, and clients.

Key Web Service Technologies

  • XML- Describes only data. So, any application that understands XML regardless of the application's programming language or platform has the ability to format XML in a variety of ways (well-formed or valid).
  • SOAP- Provides a communication mechanism between services and applications.
  • WSDL- Offers a uniform method of describing web services to other programs.
  • UDDI- enables the creation of searchable Web services registries.

When these technologies are deployed together, they allow developers to package applications as services and publish those services on a network.

Web services advantages

  • Use open, text-based standards, which enable components written in?various languages and for different platforms to communicate.
  • Promote a modular approach to programming, so multiple organizations can communicate with the same Web service.
  • Comparatively easy and inexpensive to implement, because they employ an existing infrastructure and because most applications can be repackaged as Web services.
  • Significantly reduce the costs of enterprise application (EAI) integration and B2B communications.
  • Implemented incrementally, rather than all at once which lessens the cost and reduces the organizational disruption from an abrupt switch in technologies.
  • The Web Services Interoperability Organization (WS-I) consisting of over 100 vendors promotes interoperability.

Web Services Limitations

  • SOAP, WSDL, and UDDI- require further development.
  • Interoperability.
  • Royalty fees.
  • Too slow for use in high-performance situations.
  • Increase traffic on networks.
  • The lack of security standards for Web services.
  • The standard procedure for describing the quality (i.e. levels of performance, reliability, security, etc.) of particular Web services – management of Web services.
  • The standards that drive Web services are still in draft form (always will be in refinement).
  • Some vendors want to retain their intellectual property rights to certain Web services standards.

Web Service Example

A web service can perform almost any kind of task.

  • Web Portal-?A web portal might obtain top news headlines from an Associated Press web service.
  • Weather Reporting- You can use the Weather Reporting web service to display weather information on your personal website.
  • Stock Quote- You can display the latest update of the Share market with Stock Quote on your website.
  • News Headline: You can display the latest news update by using News Headline Web Service on your website.
  • You can make your own web service and let others use it. For example, you can make Free SMS Sending Service with a footer with your company's advertisement, so whosoever uses this service indirectly advertises your company. You can apply your ideas in N no. of ways to take advantage of it.

Example of Creating Web Service in .Net



要查看或添加评论,请登录

sameer gaikwad的更多文章

社区洞察

其他会员也浏览了