That's all fine and good, but is there no hope for consuming webservices
directly through JavaScript/JScript? I know Gecko has some sort of
ability to do so; I'm just trying to get the -Microsoft-created, btw-
"Webservice Behavior" to work with my CFC webservice. I'd rather not
hack myself into a backward-compatible corner on a brand new app with a
library like the one you specify.

As it is now, when I attempt to consume it, I get an 'Unidentified
Server Error' and a response document. If I attempt to call it directly,
I get the WSDL document via a GET request, and the CFC Browser login
screen via a POST request. If I have to pass an argument, wouldn't I
need to POST to the WSDL?

-----Original Message-----
Sent: Tuesday, June 15, 2004 4:03 PM

Any cross-browser JS code that calls a WS is going to use a method
similar
to the JS Client/Server API . . . there may be a more specific version
for
WS, but you don't really need it - a few extra lines of code will get
you
where you're going.  We've been playing with something similar, except
we
don't use WS, we call the CFCs directly.  The end results are the same.

Hope this helps.

Roland


-----Original Message-----
Sent: Tuesday, June 15, 2004 2:13 PM

This is interesting, but it won't actually use webservices as
webservices-- especially my CF webservices, which will return from calls
such as this in backward-compatible (wddx) mode.

-----Original Message-----
Sent: Tuesday, June 15, 2004 11:30 AM

Something like the PengoWorks JS Client/Server API is exactly what
you're looking for - it'll allow you to do anything you want on the 
call back to the server (including invoking a component then 
formatting the data) and then return those results via JS.

http://www.pengoworks.com/workshop/js/gateway/

It's a pretty slick little utility.

Roland

-----Original Message-----
Sent: Tuesday, June 15, 2004 9:03 AM
Subject: [CFCDev] Consuming CFC as webservice from JavaScript?

Now I have need to consume the webservice through JavaScript.... I've
downloaded
Microsoft's webservice.htc "DHTML behavior" but I'm kind of stuck as to
how to support it outside IE.


Any pointers?

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev'
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to