Interoperability Using Synchronous Web Services

by Blerick Tawman.

Share
|
Homepage | Submit your article | Contact | TOS
More articles on web services  

You are here: Categories » Internet » Web services

Web services are abstract entities that are defined by a document called a Web Services Description Language (WSDL), which is an XML document that defines the location and method signature for a Web service. With a WSDL, it is possible to generate or write code that can call these services based on their described characteristics. The call methodology is also standardized on a protocol called Simple Object Access Protocol (SOAP). The underlying technology used to create the Web service doesn't matterthe interface is standard. By definition, the client posts a SOAP document to the service to call the methods. This provides a number of interoperability benefits. One doesn't need to care about the technologies, simply about the services themselves. As the services are all defined based on commonly agreed-on standards, it should be simple to interoperate with them.

There are a number of drawbacks with this methodnamely performance. As Web services are not real-time or close to it, the virtualization introduces a significant overhead. In addition to this, the implementation of the standards by different technology vendors isn't identical and can lead to problems passing data between services that have been implemented in different technologies.

Web services (called XML Web Services by Microsoft) are front and center in the .NET Framework. They are considered a critical interoperability technology that allows for business connectivity.

One of the benefits of this attitude is that Microsoft has made it very simple to create Web services with their Visual Studio.NET IDE. It offers a Wizard that allows the user to create a simple "Hello World" Web service that configures ASP.NET and IIS to run it and automatically generates the WSDL for that Web service at compile time. The source code for a simple Web service in C# looks like this:

public class Service1 : System.Web.Services.WebService
   {
   [WebMethod]
   public string HelloWorld()
   {
   return "Hello World";
   }
 }

To implement a Web service the developer would simply create a class that is derived from System.Web.Services.WebService. If he or she attributes methods of this class with the [WebMethod] attribute, the compiler generates the appropriate WSDL to define this method to external callers.

Creation of Web service clients is also very straightforward. The framework has a tool: wsdl.exe that takes the WSDL of the Web service and creates a proxy class (in either C# or VB.NET) that can be used to call the Web service.

Using it is very straightforwardto generate a C# proxy, one simply provides it with the URL of the WSDL document:

wsdl http://servername/serviceroot/service.asmx?WSDL

This proxy class can then be used within managed code to marshal communication with the Web service.

Leave a comment or ask a question
Total comments: 0

Web services Disclaimer

  • The e-articles directory is not responsible for any and all copyright infringements by writers and authors. If you suspect the information contained by this page for any copyright infringements, please contact us to investigate the issue
The Naked Truth About Pay Per Click Advertising - In this article, I am going to address one of the biggest fears that people have about pay per click (ppc) advertising. We know that there are many programs which promises huge profits but some of (more...)
DotNetNuke Hosting :: Popular CMS For Dot Net Market - DotNetNuke is the most popular Content Management System (CMS) for the.NET market. It is used on millions of websites and by tens of thousands of companies all around the world. But what makes this (more...)
Sharepoint Hosting Usability - First, let's see what SharePoint is and how it can help you. SharePoint is basically an enterprise information portal, developed by Microsoft. It can be easily be configured to run Internet, Intran (more...)
Silverlight Hosting :: Silverlight Vs Flash - Which is better, Silverlight or Flash? If you are still deciding between Silverlight hosting and Flash hosting, perhaps this article will help you take a decision. First, let's see what Silverlight (more...)
Sitefinity Hosting:The Most Flexible CMS Platform - If you are considering SiteFinity hosting, you should first learn a few things about it. If you are trying to decide between it and DotNetNuke, you should read this article. SiteFinity is a very fl (more...)
SQL Server Hosting :: MSSQL Vs MySQL - I know it is hard to decide between SQL Server Hosting and MySQL hosting. Which is better? Which is more reliable? Which offers more features? These are just a few questions when it comes to SQL Se (more...)
Windows Hosting :: An overview - Are you wondering why Windows hosting is better than Linux hosting? If you ask 10 people what they think, 5 will say that Windows hosting is the best, while the other 5 will say that Linux hosting (more...)
ASP Hosting :: Why Do People Still Use Classic ASP - Did you notice that many people are still using ASP? This is somewhat strange due to the popularity of.NET. Why are they still using the classic instead of the new and powerful ASP.NET? First of al (more...)
Windows Reseller Hosting :: Competition Point of View - Did you ever wonder what reseller hosting really is? It is basically a form of web hosting in which the owner of the account is using his or her bandwidth and hard disk space to host third party we (more...)
ASP.NET 4.0 Hosting :: The New ASP Net Technology Improvements - ASP.NET 4 brings a lot of new possibilities over its predecessor, ASP.NET 3. One of the best additions is support for meta keywords and meta description. These are very important parts of a website (more...)

 
free content
    Copyright © 2006 - 2012 e-articles.info.
The texts, articles and tutorials in the directory are property of their respective owners and authors.