[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: MS XML Parser on the Server

  • From: mike@d... (Mike Dierken)
  • To: 'Jim Lears' <JimL@A...>, "xml-dev@i..." <xml-dev@i...>
  • Date: Sat, 21 Feb 1998 16:02:06 -0800

ms xml parser
On the MS platform, you can expose all your Java classes and interfaces as COM interfaces if you use the ActiveX Wizard for Java (JAVAIDL.EXE). It'll create an .IDL file (and  .C and .H files if you want to call the interfaces from C/C++).
All Java classes are exposed asl dual interfaces, derived from IDispatch, which allows them to be called from all COM aware scripting languages (JavaScript, VB for Automation, etc).

If the Java classes are registered with Javareg (using the CLSIDs from the generated .IDL file) on the server, you can use the package name rather than a CLSID.
To create a Java object, you might try prepending 'java:' on the package name.
	Server.CreateObject("java:com.ms.xml.om.Document") 

Hope this helps...

Mike D
DataChannel

-----Original Message-----
From:	Jim Lears [SMTP:JimL@A...]
Sent:	Saturday, February 21, 1998 3:36 PM
To:	xml-dev@i...
Subject:	RE: MS XML Parser on the Server

Server.CreateObject in VBScript is used for creating instances of COM
objects. The Java XML Parser doesn't expose any COM interfaces...notably
IClassFactory which is used to instantiate COM objects. The C++ version
is what you need...its an ActiveX control. The source code for both
parsers is available. If you insist on using the Java version, you could
mod it up to sport a COM interface..


Helping To Destroy The English Language

	-----Original Message-----
	From:	Mike Wagner [SMTP:mwagner@e...]
	Sent:	Friday, February 20, 1998 3:33 PM
	To:	xml-dev@i...
	Subject:	MS XML Parser on the Server

	Has anybody managed to get the Microsoft Java XML Parser running
as a
	component accessible by ASP under IIS? I tried what seemed to me
to be the
	obvious approach and that didn't work. I copied the java classes
to the
	TrustLib directory, then registered them with javareg. (An
excerpt of the
	BAT I used file is at the end of this message). However, when I
try a
	simple Server.CreateObject("com.ms.xml.om.Document") call in an
ASP page,
	it dies with the following error:

	Microsoft JScript runtime error '800a01ad'

	Automation server can't create object

	/xmltest.asp, line 14

	Any insights? Thanks.

	Mike Wagner
	Educational Testing Service
	mwagner@e...

	-----------------Javareg BAT file--------------------
	cd \winnt\java\trustlib\com\ms\xml\dso
	javareg /register /class:SchemaNode
/progid:com.ms.xml.dso.SchemaNode
	cd \winnt\java\trustlib\com\ms\xml\dso
	javareg /register /class:XMLDSO /progid:com.ms.xml.dso.XMLDSO
	cd \winnt\java\trustlib\com\ms\xml\dso
	javareg /register /class:XMLParserThread
	/progid:com.ms.xml.dso.XMLParserThread
	cd \winnt\java\trustlib\com\ms\xml\dso
	javareg /register /class:XMLRowsetProvider
	/progid:com.ms.xml.dso.XMLRowsetProvider
	cd \winnt\java\trustlib\com\ms\xml\om



	xml-dev: A list for W3C XML Developers. To post,
mailto:xml-dev@i...
	Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
	To (un)subscribe, mailto:majordomo@i... the following
message;
	(un)subscribe xml-dev
	To subscribe to the digests, mailto:majordomo@i... the
following message;
	subscribe xml-dev-digest
	List coordinator, Henry Rzepa (mailto:rzepa@i...)

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


  • Follow-Ups:
    • LISTRIVIA
      • From: Peter Murray-Rust <peter@u...>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.