xml-rpc

How to send a xml-rpc request in python?

I was just wondering, how would I be able to send a xml-rpc request in python? I know you can use xmlrpclib, but how do I send out a request in xml to access a function? I would like to see the xml response. So basically I would like to send the following as my request to the server: <?xml version="1.0"?> <methodCall> <methodName>pr...

Create a Wordpress post with xmlrpc and jQuery

Hi, I have a dynamic page where the user can fill some fields. Those users will all have an account on a WordPress blog. I would like to allow them to directly post the content generated by the webpage to the blog. I don't want to store their password in the server so I want to do this client-side with JQuery. I have looked both at the...

How do I handle Python XML-RPC output and exceptions?

I have created a simple Python XML-RPC implementation, largely based on the examples. However, it sends output like this: foo.bar.com - - [13/Feb/2010 17:55:47] "POST /RPC2 HTTP/1.0" 200 - ... to the terminal, even if I redirect standard out and standard error to a file using >> or >. I'm doing this with the following line: python f...

Zend_XmlRpc_Server, Apache 2 and 301

I've written a very simple XML-RPC server application using Zend Framework 1.9, and it's running in an Apache 2 server on Windows. The application is in a virtual directory, defined with an "alias" directive. My problem is that calls to the application from a client always seem to return a 301 error - "moved permanently", causing the cl...

xmlrpc and System.Net.WebException .net 3.5 c#

Hi, I use CookComputing.XmlRpc; Trying to connect to trac using some requests but I get this: System.Net.WebExceptionStatus.ReceiveFailure {"The underlying connection was closed: An unexpected error occurred on a receive."} {"Unable to read data from the transport connection: An existing connection was forcibly ...

Joomla and XMLRPC: 'Incorrect parameters passed to method...'

Hi I've been trying to write a simple echo service for Joomla 1.5, but with no success. My code is this: echo.php: <?php defined( '_JEXEC' ) or die( 'Restricted access' ); jimport('joomla.plugin.plugin'); class plgXMLRPCEcho extends JPlugin{ function plgXMLRPCEcho(&$subject, $config){ parent::__construct($subject, $con...

How to debug Apache XML-RPC client with Python server

I am writing xmlrpc codes to communicate between Apache XML-RPC client and a Python SimpleXMLRPCServer. I have difficulty debugging it, because I can't find a way to see the request XML/response XML. Are there anyway I can see it dump to console or logged in file? ...

Three20 iPhone - Sending XML-RPC Request instead of HTTP?

I am new to Three20 and have been trying to develop an iPhone app with Three20 for the past week. This app has to access to a xmlrpc server. I know it is possible to receive responses in other formats like JSON. But for requests, instead of the provided HTTP class TTURLRequest, is it possible to send request by XML-RPC? ...

Identify valid server in XML-RPC request using PHP

I'm working on a client-server system, where the client makes XMLRPC requests to the server. The client part of the system is handed to a third-party, meaning that he could eventually modify the code or re-route the xmlrpc requests. Now, hoping the third-party won't modify the code, I need a way to make sure that the server the client s...

How to find out if an XML-RPC server is working?

I have a huge Ping list and want to clean it. Using PHP I have already removed duplicated, checked for 404s, redirects etc. I was wondering what I could send to the URLs to see if they are actually functioning and open for submissions? ...

Silence output from SimpleXMLRPCServer

I am running an xml-rpc server using SimpleXMLRPCServer from the stdlib. My code looks something like this: import SimpleXMLRPCServer import socket class RemoteStarter: def start(self): return 'foo' rs = RemoteStarter() host = socket.gethostbyaddr(socket.gethostname())[0] port = 9000 server = SimpleXMLRPCServer.SimpleXMLR...

Using Python & XML-RPC to add a custom field to a Wordpress post?

I want to add an 'enclosure' custom field to an existing Wordpress post using Python & XML-RPC. My code looks like this: def add_enclosure(server, post_id, enclosure): post_data = server.metaWeblog.getPost(post_id, username, password) custom_fields = post_data['custom_fields'] new_id = max([int(field['id']) for field in cus...

HTTP Authentication with PHP's Zend XML RPC Client

I am using the Zend library's XML RPC Client in a PHP application to pull data from another server over XML RPC. However the other server is using HTTP basic authentication. How can I tell the XMLRPC client to use authentication for the requests? ...

Passing a parameter in the header (XML RPC)

I'm trying to set up a server status for the MMORPG Champions Online. I got some basic information from the web master and this is all he told me: XML-RPC call to server: http://www.champions-online.com/xmlrpc.php function name: wgsLauncher.getServerStatus Parameter (language): en-US Now, I found a nice example to start with here, a...

LiveJournal xmlrpc date out of order option

I am having an issue adding posts to LiveJournal via the xmlrpc api they provide. I want to add entries older than what I have listed on LiveJournal already. But I get a response saying: "You have an entry which was posted at 2009-09-06 18:32, but you're trying to post an entry before this. Please check the date and time of both entries...

PHP Zend XML-RPC client - "Unknown type: i8" when making a request with Zend_Crypt_Math_BigInteger?

I am using Zend 1.10's XML-RPC client library to make XML-RPC requests to another server. One of the methods I have to call uses a i8 (a.k.a. ex:i8) type, i.e. extended big integer. This is supported in Zend (cf. http://framework.zend.com/apidoc/1.10/Zend_XmlRpc/Value/Zend_XmlRpc_Value_BigInteger.html). However whenever I try to make a f...

XML RPC client for C# over secured socket (https)

I have a secured (https) XML-RPC server written in python, and I have tested it with a python based client. but I need a C# based client for it, I have given a try to xml-rpc.net but it is not working with https? can any one please help me out? or I will have to write a client from scratch? Thanks ...

xmlrpc client call in python does not come back

Using Python 2.6.4, windows With the following script I want to test a certain xmlrpc server. I call a non-existent function and hope for a traceback with an error. Instead, the function does not return. What could be the cause? import xmlrpclib s = xmlrpclib.Server("http://127.0.0.1:80", verbose=True) s.functioncall() The output is:...

silverlight crossdomainpolicy.xml file problem

I have made a silverlight application and I have hosted it on my localhost IIS. and the URL of this application is http://localhost/default.aspx I have developed and other xml-rpc server which is also running on same machine and its address is https://localhost:8000, I am having problem in calling the remote functions from the url https:...

How to make an app for a Wordpress Blog ?

Hello :) I want to make an iPhone OS app for a Wordpress blog, and I'm unable to figure a way to grab the data from the blog. The XML-RPC doesn't seem to have an anonymous read-only mode The RSS feed has truncated posts So, if anyone managed to make it, please help me ;) ...