-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There are two ways I can think of -- an easy / not quite reliable
way, or a really hard, but fairly solid way...

Method 1:
(Fairly easy, not so stable)

You mention that you want ASP for increased stability (a perfectly
valid desire in my experience...), but this method relies on CF for
the parts that need CFX access.  If that's an acceptable trade off,
then this should work.

Just use one of the various HTTP COM objects to request a CFM page
from your server that has the CFX in it.  You'll need to setup
querystring or form parameters on the page to pass any information
in, and you'll need to display any results on the page in a format
that's parseable by your ASP page.  You might use WDDX for the
parameter passing, as I believe there's a WDDX COM object available.

This method is of course only as good as your HTTP and/or WDDX COM
objects and your CF Server.

Method 2:
(This one would be a b*tch to implement, but (if done correctly)
should be as stable as the CFXs you're calling.)

You should (conceivablely) be able to reimplement the CFX runtime
environment in a COM object.  Then you could pass all of the
parameters & the path to the CFX's DLL into the COM object & get
results back.  You'd have a *LOT* of work to do to implement the CFX
environment for COM, but if you did it correctly & thoroughly, I
think you'd have a saleable product....

Other potential variations:

* Learn to call the CFML.dll ISAPI filter directly without needing to
make an HTTP request.  (I haven't a clue where you'd start to
accomplish this, but it's reasonably doable...)

* Learn to call the ColdFusion service directly.  This is basically
the same as above, but it bypasses the CFML.dll layer completely. 
Chances are the sources for the Apache CF module might be a good
starting place to figure out how to talk to CFAS.


<CF_Disclaimer>
Of course doing anything but method one above would run a decent risk
of killing CFAS, your webserver, or possibly (when you Boss finds
out) yourself...  Implement at your own risk...
</CF_Disclaimer>

In short, I'd say Method One is a quick fix, Method Two is optimal.

Hope that gives you a starting point to work from...

Best regards,
Zac Bedell


> -----Original Message-----
> From: Geoffrey V. Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 05, 2000 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: CFX in ASP
> 
> 
> 
> Hey,
> I was wondering if anyone knew of anyway to pull data from a 
> CFX using ASP?
> I'm thinking it could be done in a round-about way, as Cold 
> Fusion is on the
> same box as the ASP server, but for the sake of stability we 
> need to run
> some scripts in ASP.
> 
> Ideas?
> 
> Thanks,
> Geoffrey Vail Brown
> 
> 
> --------------------------------------------------------------
> ----------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=list
> s/cf_talk or send a message to 
> [EMAIL PROTECTED] with 'unsubscribe' in the body.
> 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBObVjbAraVoMWBwRBEQJIRACdGGWcJn/i7nV3rP499Lqic7IFGJMAoMyM
mtv40xyR2w38fuUcLlR/IQtZ
=PJJe
-----END PGP SIGNATURE-----
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to