I've written a quick console application that allows you to connect to a Drupal site and create a *.cs file that contains an Interface with the available method calls to that server.
Requirements
You'll need the following information to get this to work. This version does not contain the "Begin..." and "End..." method for asynchronous calls. It is also assuming that the site is using “Key Authentication” for security. With is: “An API key is required to allow an application to access Drupal remotely.”
1. Key
2. Domain
3. XmlRpc Service URL
Application Arguments
These arguments are to be filled in from the “../admin/build/services/keys” of your site.
[/ServiceURL:] [/ServiceKey:] [/Domain:]
How-To
Once you have the above information, simply run the command to connect and pull the information. Here’s an example of how it should look from the command line:
MolineSoftware.DrupalInterfaceWriter.exe /serviceurl:http://www.mysite.com/?q=services/xmlrpc /servicekey:eab5851174c7a5b134b2c7c0f3f9a25a /domain:mysite.com
**NOTE: No spaces between the “:” and your value.
| Attachment | Size |
|---|---|
| MolineSoftware_Drupal_Writer_V2.zip | 105.79 KB |

Almost there...
Aaron, thanks for fixing the link. But I got another error trying to run it:
Connecting to Service...
Connected...
Getting list of Services...
Parseing data..
Converting information...
Object reference not set to an instance of an object.
Moline Softare 2009 [2.0.50727.4927]
Copyright (c) 2009 Moline Software. All rights reserved.
I tried with and without key, with and without sessions. Are you willing to share your source code? If I can find the problem, I'll fix it and send it back to you.
Thanks!
Brian.
Updated Code
Hi Brian,
I've fixed the code. However, the coding issue was in my MolineSoftware.DrupalXmlRpc project and I need to take a closer look at it. I need to do some testing to validate the code change is universal to work everywhere. Please let me know if you get any more errors in it.
Regards,
Aaron
Source Code
Hi Brian,
I'll try to post it tomorrow for you as well as look into the error. It's been awhile since I looked at it. Thanks for your patience.
Still not working
Now I get this:
Connecting to Service...
\Connected...
Getting list of Services...
-Server returned a fault exception: [1] 1 1 Token has expired.
Moline Softare 2009 [2.0.50727.4927]
Copyright (c) 2009 Moline Software. All rights reserved.
[/ServiceURL:] [/ServiceKey:] [/Domain:]
I double-checked and triple-checked the key and domain. I even added a new key.
Brian.
Service Configuration
Hi Brain,
Please check your "Token expiry time: " for service configuration in Drupal. What are you seeing in your "Recent Log Entries" report for the connection?
I'm testing this againist:
Regards,
Aaron
Problem downloading
Aaron, I get this when attempting to download the proxy writer:
Error 500 - Internal server error
An internal server error has occured!
Please try again later.
Upgrade issue
Sorry, had to update the file location after last upgrade. It should be working correctly now.
Works Great
Thanks for this! This works great.