Name: processfetch/testclient.rb 
1:
#!/usr/bin/ruby
2:
# encoding: UTF-8
3:
require 'rubygems'
4:
require 'riddl/client'
5:
require 'pp'
6:
 
7:
pid = '53b6aa45e4b0207100d22612'
8:
client = Riddl::Client.new("xmpp://[email protected]", "server.xml", :jid => 'jü[email protected]', :pass => 'mangler')
9:
status, res = client.get [
10:
  Riddl::Parameter::Complex.new('pid','text/plain',pid)
11:
]  
12:
 
13:
p status
14:
 
15:
puts res.first.value.read