IN-Sights Into Web Services - Part 1

xiaoxiao2021-03-06  65

Introduction

Off Late, Web Services Are One The Buzz Word Most of The Software People Let Us. In this article let us Web service. Let us start off by asking Our self "What is a web service?"

What is a web service?

Web Service is Software Components That Expose A Service over The Web.

It allows applications to share data and functionality. It can be called across platforms and operating systems regardless of the programming language used by applications. You can invoke this application programmatically over the Web using SOAP protocol.

IN .NET A Web Service IS An ASMX> Extension. The Basic Elements Of Web Services Are SOAP (XML HTTP), UDDI AND DISCO.

UDDI

UDDI Stands for Universal Description Discovery and Integration. UDDI Defines A Way to Publish and Discover Information About Web Services.

UDDI is like a registry rather than like a repository. A registry contains only reference information. For example, the windows registry contains the name of COM objects and not the entire code. When we invoke a COM object, the system finds the registry entries and Then it redirects execution to the actual binary part for what com object. UDDI Works The Same Way!

Using Microsoft UDDI SDK, Web Services Can Be Registered for Public Use At

http://www.uddi.org

Vs.NET Provides a Web Service with the option to register and publish itself from the IDE.

Disco (Discovery)

After choosing a web service through UDDI the next step is to access its discovery. Discovery is the process of locating and examining XML Web Service descriptions. Through this process a client understands that web service capabilities. Programmatic discovery is enabled through a ".disco" file, which is an XML document that contains links to other discovery documents, XSD schemas and service descriptions (WSDL) .A discovery document is automatically generated for an XML Web service when the web service is accessed using a URL with "? DISCO" in The Query String.

For instance, if the url to an Xml Web Service IS

http://www.vadivel.com/calc.asmx

, THEN A Discovery Document IS Automatically Generated with a URL of

http://www.vadivel.com/calc.asmx?disco

.

SOAP AND WSDL

SOAP stands for Simple Object Access Protocol. SOAP is an XML based lightweight protocol, which allows software components and applications communicate, mostly using HTTP. SOAP sits on top of the HTTP protocol. It is message-based and nothing but an XML document with a Pre-defined format.

The Following Features make SOAP The MOST Preferred Way of Communication over the Web:

Platform Independency Language Independency XML Based Based On W3C Standard

Every SOAP Message Has An Envelope, a header (optional) and body (soap message in xml format).

THE ENVELOPE DEFINES The Content of the Message. The Header Information. The Body Contains Call And Response Information.

Before The Advent Of Web Service and .NET, Technologies Like DCOM / CORBA etc.

Remote procedure calls (RPC) was used for communication between technologies like DCOM and CORBA, but HTTP was not designed for this. Most of the corporate networks use proxy / firewalls that allow only HTTP requests (Firewalls / proxy servers would normally block RPC). Web Sites Too Allow Mostly Http Traffic THROUGH Port 80.all Internet Browsers and Servers Support http. So http is generally a better way to communicate betWeen Applications. That's where noap comes Into Play.

Web Service Description Language (WSDL)

Let's Say We Have Created A Web Service. How does The consumer Know How to use it? Like, Which Method to invoke and what parameters to pass?

There Are Many Possible Ways We Can Think of to Accomplish this task.

..................

These informal approaches have at least one serious problem. When developer sits down to build a client for your web service, their development tool can not offer them any help because that tool has no idea about the web service's functions and parameters. The solution is to provide A Formal Description in a Machine-Readable Format.

THE WSDL IS An Xml-Based Grammar for Describing The Web Services; It's A Function, Parameters and Return Values. Being Xml-based, WSDL IS Both Machine and Human Readable.

Conclusion

In this article I have explained About the next article we would inwook in to the topic "Web Services in.". Feel Free to Ping Me At

vmvadivel@gmail.com

For any further discussion About this. on the other hand you can catch me @

Http://vadivel.thinkingms.com

Happy programming!

转载请注明原文地址:https://www.9cbs.com/read-120145.html

New Post(0)