As written before, I've been struggling with Ruby and SOAP. Apart from the fact that I really don't understand why the world likes to use SOAP, I've ran into a couple of issues I'd like to share for future generations:
- soap4r and ActionWebService don't play nicely. The SOAP implementation that is included in the standard Ruby distribution isn't very nice at all (issues with validating WSDLs), so I tried using soap4r to make SOAP requests to remote services. Single scripts worked eventually, but when including this in a Rails project that also acts as a SOAP server (using AWS), things broke majorly. Not spending too much time, I decided to make SOAP requests from external scripts that I call with exec().
- soap4r doesn't set the xsi:nil attribute to elements that allow this when the content is nil, but the element is a ComplexType. The solution here was to manually construct the SOAP elements (using SOAP::SOAPElement).
- On my development machine (OSX with Ruby 1.8.6) things finally worked fine, but when deploying to a production environment (Linux with Ruby 1.8.7), things broke when calling "id" on a SOAP result object with the message "warning: Object#id will be deprecated; use Object#object_id" and instead of the id in the SOAP result, I got the object_id (which is an internal id for the object and utterly useless for my purposes). The solution here was to not call methods on the result object, but treating it as a Hash. So result.id becomes result['id'].
Just before I was going to sleep, I was reading my daily news sources and stumbled apon a small article about Gordon, a famous Dutch singer, who's competing in the Euro Vision Song contest, saying he's not going to sing at the EVS if some gay people in Moscow can't have a gay pride there during the song contest. Now I think this is such a stupid action that I had to sit behind my computer and write something about this.
First of all, don't get me wrong here. I'm totally cool with gay people. I have gay friends and I'm absolutely tolerant on the way people are (I'm not even going to defend myself on this one). But what bothers me is that some gay singer from a tiny country called the Netherlands thinks he's somebody internationally and trying to make a statement by not performing at the EVS. As if the Russians would care. This really shows that Gordon has absolutely no sense of the (in this case) Russian culture. Now, I've been to Russia a couple of times, and I'm no expert on Russian culture, but I have tasted a bit of Russian culture in general and from what I have experienced, I can say that it's so very different from Dutch culture. Here, people would be shocked if a celebrity would cancel a gig for an idealistic reason, but I'm afraid that Russia doesn't work that way. Of course there are gay people everywhere, even in Russia (although most straight Russians would disagree with me), but the general mentality isn't as tolerant and progressive as we have here in the Netherlands. I think we live in one of the most progressive and tolerant countries in the world (or at least I love to think I do), but that doesn't mean that the rest of the world works in the same way and that we should expect that people react the same way as we are used to. (I have the same feeling about forcing democracy on people that are not used to this, but that's something for a different post, I guess). Russians are proud people that have a strong opinion that they don't change for nothing, so why would they care if some gay singer from a tiny country is not going to sing at an already very gay contest? Of course I understand that Gordon wants to make a statement and that he wants to fight for gay emancipation worldwide, but as with many things I think that every culture needs its own way of dealing with issues. If you really want to change peoples views, use the right way. In my opinion, Gordon should perform and use the moment he's performing to make a statement. Do a speech in Russian and tell all Russian viewers what you want them to know. That will at least make the headlines.
Recent Comments