BizTalk Utilities CV ,   Jobs ,   Code library  
 
 
Page 3 of 9

 

Previous Page Table Of Contents Next Page

XIR: Use XML To Call COM Components over the Internet, cont.

Solution Design

You can build such a system and its easy using the right building blocks. I'll refer to the system shown in figure 1 as XIR (XML-based Internet RPC). A client-side control handles making all server-calls and returning output. The control packages all method calls and their parameters and sends -via HTTP POST- this over the Internet to the XIR ASP page. This is a generic page with only a couple lines, it simply turns around and calls ProcessRequest on the XIR server. The server is then responsible for instantiating your COM component, calling methods, passing parameters and returning output. To do its job, the server needs a mechanism to call any method given its name at runtime, that's what XIR Call-By-Name (XIRCBN) does.

Figure 1: XIR System Overview

Before we get into the details of the client-side interface and how it is used, let's understand how we can actually call components over the Internet. First, the XIR server needs to know the component's ProgId, the method name and the method signature. Although the XIR server can use a component's type library to find the method signature, it is more efficient to just provide it along with the method name.

You can think of each method on each component as a unique service provided to the client. A catalog is needed to map each unique service name to component ProgId and method name. To provide this information, I created a services catalog as an XML document containing a list of server-side components and methods that are callable from clients, each assigned its own unique service name as in figure 2. Each parameter has a type attribute that defines its data type using the vbVarType enumerated values. This document resides on the server and is fairly static. You need to update it only if you add/remove or otherwise change components or methods callable by the client. The process of adding a new service to the catalog can be thought of as publishing this new service.

 

Page 3 of 9

 

Previous Page Table Of Contents Next Page
 

Recent Jobs

An immediate job opportunity as a B
Software Developers Needed in Charl
Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C

View all Jobs (Add yours)
View all CV (Add yours)



answering service
bigfoot conferencing
swimming pool contractor
saveonconferences uk rates
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses


    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP