Google Groups Home
Help | Sign in
Python XML-RPC Server with clientside Javascript
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
akineko  
View profile
 More options Jul 5, 12:57 am
Newsgroups: comp.lang.python, comp.lang.javascript
From: akineko <akin...@gmail.com>
Date: Fri, 4 Jul 2008 21:57:37 -0700 (PDT)
Local: Sat, Jul 5 2008 12:57 am
Subject: Python XML-RPC Server with clientside Javascript
Hello everyone,

I have used Python SimpleXMLRPCServer to expose several methods to be
used.
My Python script creates a free-standing server and not a CGI script.
I have tested its exposed methods using the following Python script:

import xmlrpclib
s = xmlrpclib.ServerProxy('http://localhost:8765')
print s.my_method()

I tested all methods one by one and they are working as I intended.

Now, I want to use those exposed methods from a static html file
(without any web server) using client side javascript. (i.e. Open
File... from the browser (or file://...) )

I found many XML-RPC examples with javascript but all of them I found
assume XML-RPC services to be deliver from a web server, such as
Apache, as a CGI.

I tried those examples with placing 'http://localhost:8765' as url,
but they didn't work.

How can I utilize the XML-RPC services from a free-standing
SimpleXMLRPCServer in a static HTML page?
Is it possible to do such? Do I need web server to use client-side
javascript?

I have searched the Internet for similar questions. I found similar
postings but there were no clear answers.

Any suggestions will be highly appreciated.
Best regards,
Aki Niimura


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google