Robert, try to change the type of the file from mac to unix....
Are you on OSX?
For me it worked :
http://radio.weblogs.com/0001103/2002/02/04.html
But when I copy-pasted the python script from a web page, the script
file showed crap when making a "cat" or "more" in the terminal, and of
course it was not working. Changing from mac linefeeds to unix linefeeds
solved the problem.
I'm confused with osX using the two types... ?
JY.
> Message: 24
> Date: Sun, 3 Feb 2002 17:26:17 -0600
> From: Robert Barksdale <robert@...>
> Subject: Re: BMB: Web Services for Radio 8
>
> Am working on it, guys. I appreciated your patience....
>
> 1. Here's what I did:
>
> First, I created a text file named helloWorld.txt and placed it in the
> Web Services Folder located in my Radio UserLand Folder. This file has
> the following:
>
> on helloWorld (name) {return ("Hello " + name + "!")}
>
> Next, I entered the following in the edit box of my DWHP:
>
> <%params = {"Dave"}; xml.rpc ("127.0.0.1", 5335,
> "radio.helloWorld", @params)%>
>
> And then I ran the script in the Quick Script window:
>
> params = {"Dave"}; xml.rpc ("127.0.0.1", 5335,
> "radio.helloWorld", @params)
>
> 2. This is what I expected to happen: I expected "Hi, Dave!" to
> magically appear.
>
> 3. This is what actually happened:
>
> In both instances I received the following error:
>
> The server, 127.0.0.1, returned error code 7: Canít evaluate the
> expression because the name ìhelloWorldî hasnít been defined.
>
> Go To is: systems.verbs.builtins.betty.rpc.client
> Line: scriptError ("The server, " + rpcServer + ", returned error
> code " + faultCode + ": " + faultString)
>
> Continuing to dig, but I'm beginning to think I need a bigger shovel!
>
> Robert