Calling Web Service from VB6

by Li Chen 10/26/2006 5:38:00 PM

It is possible to call web service from VB6 using Soap Toolkit 3.0. Soap Toolkit works the best when calling Web services created using Soap Toolkit 3.0 and COM objects. This is because Soap Tookit 3.0 comes with the WSDL tool that can generate both the WSDL and WSML files. The later is important in deserialze the soap message and map it to the COM objects on the client-side.

What happens to Web Services not created with Soap Toolkit 3.0? Those web services do not have WSML files. So we can either create WSML manually or create the customer mapper. The later essentially requires to walk through the IXMLDOMNodeList returned by soap call and create and set the properties of COM objects. 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Web Service | XML

XML in Word 2003

by Blog Author 4/14/2003 7:15:00 PM
XML in Word 2003 is quite interesting. I should spend some time to study it. See this MSDN online article.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Office | XML

XMLReader vs SAX parser

by Li Chen 4/5/2003 7:13:00 PM

Recently, I tried to port some Java code to C#. Most Java code use SAX to process XML. .net framework library does not support SAX. It supports XMLReader instead. I tried to compare both approaches to see which one would result in cleaner implementation. I encountered two articles. The first article is on xml.com. The article gave a nice example on how to port SAX code to XMLReader code. The second article is by  Dino Esposito on zdnet. The article favors the .net approach considering Dino is largely a Microsoft guy

The difference is tat SAX use a push model while XMLReader uses a pull model. With SAX, we just need to set up an event handler. The default SAX parser acts as a driver to parse the document and fire the events. With XMLReader, we have to create a loop that keeps calling the read method of the XMLReader class. We then have to implement a switch construction that dispatch the processing to other procedures depending on the node type. This model is similar to how we process the Windows message loop. It is possible to construct the dispatching mechanism to be like that of SAX.  At the first glance, it takes less code to setup SAX parser. However, in the subsequent processing, we can call one of the readxxx method of XMLReader to pull additional information. This would gives us more control and cleaner implementation than the SAX model.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

XML | .Net

Powered by BlogEngine.NET 1.2.0.0
Theme by Mads Kristensen

About the author

Name of author Author name
Something about me and what I do.

E-mail me Send mail

Calendar

<<  January 2009  >>
MoTuWeThFrSaSu
2930311234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

Pages

    Recent comments

    Authors

    Tags

      Disclaimer

      The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

      © Copyright 2009

      Sign in