On Monday, Jan 20, 2003, at 08:10 US/Pacific, Brad Howerter wrote:
> <cfcomponent output="false">
> <cffunction name="hi" returnType="string" output="no" access="remote">
> <cfreturn 'hello, world'>
> </cffunction>
> </cfcomponent>
>
> And here's how I'm trying to access it:
>
> <cfscript>
> ws = CreateObject("webservice",
> "http://webftc18/com/woodward/example.cfc?wsdl";);
> mystring = ws.hi();
> writeoutput(mystring);
> </cfscript>

This looks reasonable. I tried your code and it worked just fine. The 
only thing I can think of is the WSDL URL you used. If the WS is on the 
same machine, you could use 'localhost':
        http://localhost/com/woodward/example.cfc?wsdl

You can test the component is accessible by typing these URLs into your 
browser:
        http://localhost/com/woodward/example.cfc
        http://localhost/com/woodward/example.cfc?wsdl
        http://webftc18/com/woodward/example.cfc
        http://webftc18/com/woodward/example.cfc?wsdl

If all of these come up, but changing webftc18 to localhost in your CF 
code doesn't work, I don't know what to suggest.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to