Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project



Creating a Web Service using ActiveX Components



Summary

Now that we have all the pieces we need, simply create a new application in MTS and add the two components or register them user regsvr32. Once this is complete we can now use our ASP interface to enter a number and retrieve our answers.

Here is what the outgoing SOAP message will look like:

<SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlSOAP.org/SOAP/encoding/" xmlns:SOAP-ENV="http://schemas.xmlSOAP.org/SOAP/envelope/">
    <SOAP-ENV:Body>
        <Functions:CalcFactorial xmlns:Functions="uri:Math">
            <Functions:Number>10</Functions:Number>
        </Functions:CalcFactorial>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Here is the response SOAP message:

<SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlSOAP.org/SOAP/encoding/" xmlns:SOAP-ENV="http://schemas.xmlSOAP.org/SOAP/envelope/">
    <SOAP-ENV:Body>
        <Functions:CalcFactorialResponse xmlns:Functions="uri:Math">
            <Functions:Answer>3628800</Functions:Answer>
        </Functions:CalcFactorialResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

As you can see this was a very simple example of a XML Web Service application that utilizes Microsoft's SOAP Toolkit. Although simple to implement, this article illustrates a very exciting and powerful point: SOAP and XML Web Services allow you to make remote calls to objects. This technology allows you to provide rich business functionality across a distributed environment without requiring a programming language upgrade. Even though .NET is an exciting and powerful tool, if your environment isn't ready for the jump, you don't have to be left in the cold.

________________________________________________________________________

Support Material

This article contains a support file. To download the attached support file, please click here.

Related Links

Microsoft's SOAP Resources for Developers
http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000523

Microsoft's SOAP Toolkit
http://www.microsoft.com/downloads/details.aspx?familyid=C943C0DD-CEEC-4088-9753-86F052EC8450&displaylang=en

About the Author

Jim Milam is a .NET Certified Application Developer and works for Cardinal Solutions (http://www.cardinalsolutions.com) in Cincinnati, OH. Cardinal Solutions provides eBusiness solutions to Fortune 1000 companies in a variety of industries including medical, manufacturing, insurance, engineering, financial services, banking, consumer retail, telecommunications and aerospace.  


 
  1 2 3 4 5 6
 
   
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information
knoxville photographer
knoxville wedding photographer