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

 

Previous Page Table Of Contents Next Page

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

Extending The System

The system I have discussed so far allows you to call any COM component over standard HTTP with simple client-side script code. You can extend the system functionality even further with just a little more coding. First, this system does not include the ability to make asynchronous calls. Adding this would be straightforward because the XMLHTTP component provides the ability to submit asynchronous requests and raises an event to notify you of request completion. You would just have to set the async flag when you call the Open method.

A more involved feature to add is support for ByRef parameters. This type of parameters is usually frowned upon when used in server methods called by clients. You probably already know this but using DCOM, each ByRef parameter must be marshaled from client to server then back again. ByVal parameters are only marshaled from client to server but not back. Furthermore, if you develop server components in ATL, you may have some methods with [out] parameters (VB cannot have out parameters except for the return value of a function). The discussed implementation of XIR does not support ByRef (i.e. [in, out]) or [out] parameters. You could add this support by adding a parameter direction attribute to the request XML document and having the server return all ByRef and [out] parameters as part of the response document.

You may also need to implement the XIR client as a Java applet or directly in script. I used an ActiveX control because that works for my application. If your application has different requirements, there is no reason to stick to an ActiveX control.

Finally, if you do not want the server to be constantly performing lookups on the service catalog, you can distribute this catalog to your clients and have the XIR client perform the lookup and send the progid, method name, call type and return type as part of the request XML. This distributes some of the processing load on the clients slightly offloading the server.

 

Page 7 of 9

 

Previous Page Table Of Contents Next Page
 

Recent Jobs

Sr. Software Engineer - Analytics
Immediate Mainframe openings for Ch
Immediate TANDEM-TAL openings for C
Immediate ASP.NET/C# Openings for C
Sr. Software Engineer

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



teleconferencing
water softener
Teleconference
Host Department NOLIMIT Web Hosting
MSN
sunglasses
go to meeting


    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