Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

root/tags/RELEASE_1_4_1/sample/babelfish.rb

Revision 369, 408 bytes (checked in by nakahiro, 7 years ago)

Added some samples.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to author date id revision
Line 
1 #!/usr/bin/env ruby
2
3 proxy = ARGV.shift || nil
4
5 require 'soap/driver'
6
7 InterfaceNS = 'urn:xmethodsBabelFish'
8 server = 'http://services.xmethods.net/perl/soaplite.cgi'
9
10 drv = SOAP::Driver.new( nil, nil, InterfaceNS, server, proxy )
11 drv.addMethodWithSOAPAction( 'BabelFish', InterfaceNS + "#BabelFish", 'translationmode', 'sourcedata' )
12 drv.setWireDumpDev( STDERR )
13
14 p drv.BabelFish( 'en_fr', 'Hello World.' )
Note: See TracBrowser for help on using the browser.