Can't be done directly--there's no bridge between Java and .NET (at least 
not yet, AFAIK).

Two options,

1.  Wrap the .NET assembly inside a Web Service, as you said (but I 
wouldn't call it kludgy since this is the most current recommended way to 
program cross-platform/language interaction).

2.  Wrap the .NET assembly inside a .NET COM interop class.  This should be 
fairly straight forward.  As I understand it, COM classes created in .NET 
do not by default expose the IDispatch interface which CFMX relies on for 
using COM, so you have to do something in the .NET COM interop class to 
tell it to expose IDispatch.  There was a post on MM's forums that detailed 
how to do this (from MM tech support).  Search groups.google.com.

HTH,

Sam


At 02:46 PM 12/11/2002, you wrote:
>I understand that this is kind of trivial - given that you can consume
>NET Web Services - however I am trying to use classes from a .NET
>assembly that have not been exposed as WebMethods.  Has anyone out there
>heard of or done anything like this?
>
>Perhaps I could create a .NET Web Service that accesses the local
>assembly, and then exposes the results as a WebMethod - but that's a
>little kluged.
>
>Thanks in advance.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to