[Zope] vcXMLRPC with Zope?

S Babu vattekkat.babu@verizon.net
Thu, 05 Dec 2002 11:14:53 -0500


Hello,

I've a python script that works nicely from python xmlrpclib client. I'd 
like to use it to work from the browser, preferably using vcXMLRPC 
library ( www.vcdn.org/Public/XMLRPC/).

py script is called "str" and is in http://localhost:8080/services . It 
takes one parameter s and has one line "return 'ret' + s

All I get in the browser is None as the return value from the service. 
 Any idea?

--- html --

<script src="vcXMLRPC.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
var strService;
strService = XMLRPC.getService("http://localhost:8080/");
strService.add("services.str","str")
XMLRPC.onerror = function(e){
    alert(e.message);
    return true;
}
var done = false;
function getIt(inStr){
    alert(inStr);
    outStr = strService.str(inStr);
    alert(outStr);
    return (outStr);
}
//-->
</script>

TIA
S Babu