Dear Dave & others who responded, 

I removed the WDSL and replaced it with method=methodname and it works as
far as I can tell.  Very cool

req.open("POST", "http://dan:8500/myCFC/cgitest.cfc?method=hello",true,
"","");

I have seen the second param set to false. 

Basically the code looks like:

req = new XMLHttpRequest();

req.onreadystatechange = processReqChange; 

Strange because processReqChange is a function. 
So when onreadystatechange is called it also calls processReqChange?

It also seems to work without the headers, should I include them anyway? 

To be charitable I added one:
xmlhttp.setRequestHeader ("Content-Type", "text/xml; charset=utf-8");

And I get back 
<wddxPacket
version='1.0'><header/><data><string>0</string></data></wddxPacket> 

Which seems right to me. 

Neuromancer seems be a dungeon I am prepared to go down at the moment. It
would interesting to see it used like an online chess game with CF in the 
Background. 

  



-----Original Message-----
From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 9:55 AM
To: CF-Talk
Subject: Re: Can DHTML call a web service directly

On Thu, 24 Feb 2005 23:49:28 -0500, Dan Plesse <[EMAIL PROTECTED]>
wrote:
> Thanks for the quick reply Rob,
> 
> But every time I look at neuromancer, I can't seem to understand how to
get
> started.
> 
> I was wondering if you could just call a web service with just two lines
of
> code? Like so ...
> 
> req = new XMLHttpRequest();
> req.open("POST", "http://dan:8500/myCFC/cgitest.cfc",true, "", "");
> 
> But I get the component browser page, which is strange.
> 
> The neuromancer thing looks like overkill and it's lacking instructions on
> how to use it.
> 
> I have done this so far
> 
> roFactory.createObject(httpcon,"http://dan:8500/myCFC/cgitest.cfc";);
> robject = roFactory.getObject();
> 
> neuro_Reflect(robject);
> 
> When I try to use reflect assume the return was ok or 200 it gives me just
> "Object" or a bad reflection.
> 
> A quick primer would be helpful.
> 

I can't help you on the Neuromancer side of things, as I've not used
it, but you're createObject call isn't correct. If you call a CFC
directly like you did, you will always get the Component Browser. You
need to append a "?method=myMethodName" onto the end of the URL. Maybe
that will get you a bit further?

Regards,
Dave.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:196602
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to