xml-rpc

Events happening in the community are now at Drupal community events on www.drupal.org.
dianacastillo's picture

user.update xml-rpc method - Missing required argument data

Hi, I am sending the below xml for user.update and I get "Missing required argument data" . what am i doing wrong

<?xml version="1.0"?>
<methodCall>
   <methodName>user.update</methodName>
   <params>
     <param>
       <struct>
         <member>
           <name>uid</name>
           <value><int>48</int></value>
         </member>
       <member>
           <name>name</name>
           <value><int>sally</int></value>
         </member>
        </struct>
     </param>
   </params>
</methodCall>
Read more
dianacastillo's picture

questions about user.register

How can I specify the uid in the user.register method instead of having Drupal automatically assign it ? (using xml-rpc) Also how can I specify the role (s) for this user ? I tried
role
editor

but it ignores this. thank you

Read more
lisa.rae's picture

Drupal 7, XML-RPC and Sessions

I'm in the process of developing a Drupal site that will make heavy use of XML-RPC for smartphone clients. I would like to develop this site in Drupal 7, but had already started in Drupal 6. My question specifically relates to using sessions with XML-RPC requests.

How do you indicate in Drupal 7 that an XML-RPC method requires a valid session -- this is pretty straightforward in Drupal 6 with the Services module installed once you find the right documentation.

If there's documentation on this, please point me in the right direction, as I haven't found it yet for Drupal 7.

Thanks!

Read more
Josephnewyork's picture

iPhone XML-RPC Services "Missing Required Arguments"

I'm writing an iPhone app that accesses my Drupal 6 Services remotely.

I'm using the Cocoa XML-RPC Framework and no matter how I send the arguments to my Drupal site, it returns with "Missing Required Arguments" Fault Error.

I'm using sessions and not keys, and the system.connect method works perfectly and gives me a session Id. But when I try and run any other method that uses arguments it faults...

Read more
pdumais42's picture

Python code using XML-RPC to create a node and upload/attach a file.

I've searched the web looking for something more than a "create a node" example for Drupal Services. There are some good examples for Flash/Flex and some bits and pieces in Python or PHP but nothing that helps me to figure out what I am doing wrong.

Since my client is planning to develop a cross platform application that interacts with their Drupal site, I thought I would create a sample app in Python - just to show the Flash, iPhone, Droid, Blackberry developers how the Drupal Services API works.

Read more
dhovey's picture

Document vs RPC style

I am attempting to use Adobe LiveCycle Designer to communicate with my Drupal install. However, after I select the data connection type WSDL and paste in the url of the WSDL, I get a message on any service I select that says "Cannot choose this operation: - Soap Binding must be Document/Literal." In the module, it appears that the type is hard-coded to "rpc". I am stuck and not sure what to do. I am new to the group and the module, so please bear with my stupidity on this. Thanks for any thoughts.

Read more
nhchau's picture

How to fix "XML-RPC server accepts POST requests only." error?

I tried Services and it methods work, except XML-RPC. Testing XML-RPC with Drupal 6.10 (and 5.16) by click into http://mysite.com/services/xmlrpc I got the following message: "XML-RPC server accepts POST requests only."
How to fix this?

Read more
thompcha's picture

PHP Script for XML-RPC calls from outside Drupal

Here is a set of PHP functions I put together for calling Drupal's core XML-RPC methods without using the Services API:


<?php
function assemble_request($method, $args = array(), $dump_request = FALSE){
$request = xmlrpc_encode_request($method,$args);
$context = stream_context_create(array('http' => array(
'method' => "POST",
'header' => "Content-Type: text/xml",
'content' => $request
)));
if($dump_request){
echo '

<

pre>';
echo htmlentities($request);

Read more
otisjs01's picture

Using xml-rpc to pull information into Drupal...

I am relatively new to Drupal.

I have a website that I am trying to build that synchronizes, or at least pulls data out of, another database.

Read more
mattrock's picture

Live Playlists

Record keeping is now a requirement for radio stations who are web streaming. The basics of the rules are spelled out at the CBI website. Recent discussions on the CBI-General listsrv [no archive available that I can find] are talking about the record keeping which stations need to now comply with SoundExchange. While not many are happy with the requirement, I would like to suggest that this might be a place to start forming the necessary tools to meet this requirement.

Read more
Subscribe with RSS Syndicate content