In: Categories » Internet » Web services » Interoperability Using Synchronous 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.
|
legal disclaimer
1) Our website is not responsible for the information contained by this article as well for any and all copyright infringements by authors and writers. E-articles is a free information resource. If you suspect this article for any copyright infringements, please read the Terms of service and contact us to investigate the problem.
2) The E-articles directory team is not responsible for inaccuracies, falsehoods, or any other types of misinformation this tutorial may contain and will not be liable for any loss or damage suffered by a user through the user's reliance on the information gained here. Please read the Terms of service
Useful tools and features
related articles
The primary function of a Web server is to send appropriate HTML code to the Web browser. Today’s trend is to serve content to the Web via an e-commerce database solution. In order to make this happen, the Web server must communicate with the database. The Web server must make requests to the database, interpret the database’s response, and pass on the appropriate data to the Web browser. In order for the Web server to communicate with a database, it must communicate through an Application Programmi...
2. Online Payment Services
After businesses have built a Web site and implemented SSL certificates to authenticate themselves to customers and encrypt communications and transactions, they must address another crucial component of an e-commerce infrastructure. This involves enabling customers to easily pay for products and services online—and processing and managing those payments in conjunction with a complex network of financial institutions. Today’s fragmented Internet payment systems often connect online merchants to banks via p...
3. Why You Should Use Web Services
There are two main reasons to use web services, both remarkably straightforward: someone else has information you require, or you have information you wish to provide to others. When planning a new web service, remember that servers can either provide or accept information. Remember that web services can provide any level of security, from a completely open service open to all who request it, to a private service with transfers happening over SSL and client-side certificates to validate identities. Convincing the Boss...
4. How to Obtain Your SSL Certificate
To complete your SSL certificate enrollment, please visit one of many sites, for example: http://www.verisign.com/products/site. There, you will be instructed to complete the following steps. Generate Certificate Signing Request: Follow the instructions in your server software manual, or online at http://digitalid.verisign.com/server/enrollStep3.htm, to create a Certificate Signing Request (CSR) and a key pair. After the server software creates the two files, make backup copies of them o...
Web services are a collection of protocols that are used to exchange data between disparate applications or systems. The essence of web services is the open standards on which they are built, by leveraging public and common protocols like HTTP, along with the XML document model. Web services are easy to implement with existing technologies. Not only are you (as a PHP developer) already familiar with many aspects of web services and the tools required, but you already have the facilities required to deploy them. Why They Are U...
6. How Digital Certificates (SSL) Work
In physical transactions, the challenges of identification, authentication, and privacy are solved with physical marks, such as seals or signatures. In electronic transactions, the equivalent of a seal must be coded into the information itself. By checking that the electronic “seal” is present and has not been broken, the recipient can confirm the identity of the message sender and ensure that the message content was not altered in transit. To create an electronic equivalent of physical security, some vendors use adva...
7. External Blogging Personality Types
Instead of providing a dry list of the top ways you can use blogs, I’ve decided to look at blogging in a different way. I have taken the top seven types of business blogs and personified them as different characters, or locations, within a city. Let’s take a tour of this virtual city and visit some people and places your business may want to work with as it discovers, experiments with, and eventually embraces blogging: • The Barber Barbers can prove to be prominent citizens— they know the right...
8. What You Can Learn from Log Analysis: The Basics
Any software you might use to make sense of your Web site is likely to find its way onto a list of log analysis tools. There are a lot of tools and many more become available every day. The last time I looked, there were nineteen of them at this Yahoo! category: http://dir.yahoo.com/Computers_and_Internet/Software/Internet/World_Wide_Web/Servers/L og_Analysis_Tools/. But there were another forty-three at this site: http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_N etwork...
9. A Wealth of Measurement Methods on the Web
There's no end to the things you can measure. Studies can correlate employee punctuality to manufacturing output, press release flamboyance to investor turnover, and frequency of atdesk massages (remember those?) to grammatical errors per email. So let's start simple and start with the Four R's: ROI, ROA, ROE, and ORI. Return on Investment (ROI) I first heard the words return on investment when I opened an account at Palo Alto Savings with a $25 birthday fortune received from my grandmother. I'd ne...










