ASP.NET
  Home arrow ASP.NET arrow Page 6 - ASP.NET and Web Services, Part 1
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

ASP.NET and Web Services, Part 1
By: McGraw-Hill/Osborne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 9
    2004-03-08

    Table of Contents:
  • ASP.NET and Web Services, Part 1
  • What Is a Web Service?
  • Creating a Web Service
  • Defining a Service-Oriented Architecture (SOA)
  • SOA Web Services
  • Primary Web Services Technologies
  • SOAP's Messaging Architecture
  • Other SOAP Attributes
  • More SOAP Attributes

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    ASP.NET and Web Services, Part 1 - Primary Web Services Technologies


    (Page 6 of 9 )

    The preceding discussion has focused on describing a web service process. It is useful now to explain how the client accesses services by employing the core web technologies-namely, Simple Object Access Protocol (SOAP), HTTP,Web Services Description Language (WSDL), and Universal Description, Discovery, and Integration
    (UDDI)-to locate the service/services the client specifies. Developers can browse numerous web service repositories (registries) and select appropriate services for implementing their own applications. Figure 2 demonstrates how a registry serves as host to a collection of web services.

    Simple Object Access Protocol

    SOAP provides a standard structure for transmitting XML documents over the wire, which includes SMTP, HTTP, and FTP. SOAP also defines encoding and binding standards for encoding non-XML Remote Procedure Calls. SOAP enhances interoperability between client and server. Clients with .NET can call EJBs through SOAP and vice versa.

    NOTE Other protocols have been developed, for example, Sun's RPC, Microsoft's DCE, Java's RMI, and CORBA's ORBC.

    Web Service registry

    Figure 2 A web service registry

    Why are so many corporations embracing SOAP? It has industry-wide support and is not bound to one programming language. Interestingly, SOAP does not use a specified set of APIs, but rather leaves the implementation up to the programming language (such as Java) and the platform (such as Microsoft .NET). The SOAP specification does not describe how SOAP messages should be bound to HTTP.SOAP is an XML document. Listing 1 is representative of a typical SOAP request and response XML file.

    Listing 1 SOAP request-response example


    POST /MathWebService/Service1.asmx HTTP/1.1
    Host
    ecom10
    Content
    -Typetext/xmlcharset=utf-8
    Content
    -Lengthlength
    SOAPAction
    "http://tempuri.org/SelectMaxValue"
    <?xml version="1.0" encoding="utf-8"? >
    <soap:Envelope
    xmlns
    :xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns
    :xsd="http://www.w3.org/2001/XMLSchema"
    xmlns
    :xsd="http://schemas.xmlsoap.org/soap/envelope/">
        
    <soap:Body>
          
    <SelectMaxValue xmlns="http://tempuri.org/">
            
    <x>int</x>
            
    <y>int</y>
          
    </SelectMaxValue>
        
    </soap:Body>
    </soap:Envelope
     
    HTTP/1.1 200 OK
    Content
    -Typetext/xmlcharset=utf-8
    Content
    -Lengthlength
    <?xml version="1.0" encoding="utf-8"? >
    <soap:Envelope
    xmlns
    :xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns
    :xsd="http://www.w3.org/2001/XMLSchema"
    xmlns
    :xsd="http://schemas.xmlsoap.org/soap/envelope/">
          
    <soap:Body>
            
    <SelectMaxValueResponse xmlns="http://tempura.org/">
            
    <SelectMaxValueResult>int</SelectMaxValueResult>
          
    </SelectMaxValueResponse>
        
    </soap:Body>
    </soap:Envelope>

    NOTE In a production environment, change the XML namespace to your own namespace as demonstrated here:

    <int xmlns="http://www.dp.org/results/>

    Remember: This is part one of chapter 7 .NET & J2EE Interoperability, by Dwight Peltzer (McGraw-Hill/Osborne, ISBN 0-07-223054-1, 2004). If you like what you see, feel free to click on the following link to get your own copy!
    Buy this book now.

    More ASP.NET Articles
    More By McGraw-Hill/Osborne


     

    ASP.NET ARTICLES

    - Disadvantages of the ASP.NET MVC Framework
    - Advantages of the ASP.NET MVC Approach
    - ASP.NET Web Forms Weaknesses
    - ASP.NET Web Forms Meets ASP.NET MVC
    - Source Code for Saving and Retrieving Data w...
    - Using GridView to Save and Retrieve Data wit...
    - Handling Dynamic Images in ASP.NET 3.5 AJAX ...
    - Retrieving Data with AJAX and the GridView C...
    - Playing with Images in ASP.NET 3.5 AJAX Appl...
    - Saving and Retrieving Data with AJAX
    - Enhancing PHP Via the ASP.NET AJAX Framework...
    - Enhancing PHP Programming with the ASP.NET A...
    - Classes and ASP.NET AJAX
    - Using ASP.NET AJAX
    - Building a Simple Storefront with LINQ

     
    Application Delivery: Everything You Wanted to Know, but Didn`t Know You Needed to Ask
    A comprehensive guide to examining the topics of Wide-area Data Services and app....

     
    Best Practices: Safe and Secure Hardware Asset Recovery
    Companies increasingly must meet EPA and local requirements for the disposal of ....

     
    Managing SSL Security in Multi-Server Environments
    Read this white paper to learn how to simplify management of your organization's....

     
    Open Source Security Myths
    Open Source Software (OSS) is computer software whose source code is available t....

     
    Power and Cooling Capacity Management for Data Centers
    This paper describes the principles for achieving power and cooling capacity man....

     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT