This will be the easiest post I’ve ever written. If you are using .NET and are trying to use Drupal webservices, DON’T USE SOAP. The SOAP webservice is extremely undocumented. I tried for hours to get this to work and ran into problem after problem. (For example, the service names use periods (node.get) which won’t work in C#.) Renaming it will allow me to use the services, but the complicated cookie/session/key authentication is a mess.
I finally got the .NET project to use the service, but every time I tried to access a node it said it didn’t exist, which I am assuming has to do with permissions. I tried to use the user login method and .NET won’t understand the “struct” type.
Please oh please correct me on this if you’ve got a .NET app to successfully use the SOAP web service. Otherwise, use the slightly more documented and proven XML-RPC service.
I have my drupal project (version 6) sitting on a Windows XP box, running on top of IIS but I needed to use ClearnURLs. So, to Linux here I come. I decided to use Ubuntu, but I kind of wish I used Fedora. The MySQL client tools don’t seem to have a release for Ubuntu and downloading the Fedora version didn’t work. I always thought Linux application could run on any flavor of Linux… but I’m off topic.
To get CleanURLs to work, you’ll need to install mod_rewrite (rewrite_module), which is pretty easy:
sudo a2enmod rewrite
sudo /etc/init.d/apache2 restart
apache2ctl -M (make sure the Module is installed, look for rewrite_module)
Edit the file /etc/apache2/sites-available/default
Find the following:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
and change it to:
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Restart Apache:
sudo /etc/init.d/apache2 restart
Now go to Drupal. If you go to modules>Clean Urls (make sure the Path module is loaded) you should see 2 radio buttons and a confirmation message below saying you’re able to use CleanUrls. Flick the switch.
I really recommend installing the pathauto module if your looking for some real functionality. You can get rid of that /node/ uselessness in the url and make some good human and SEO friendly urls.
Leave a comment if you get stuck.