#!/usr/bin/env ruby require "soap/wsdlDriver" wsdl = "http://wing.comp.nus.edu.sg/~forecite/forecite.wsdl" driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver # classify the websites listed in the URL below against the 3-level ODP hierarchy output = driver.classify_websites("http://wing.comp.nus.edu.sg/~forecite/samples/url10.txt","odp") # output = driver.segment_urls("http://wing.comp.nus.edu.sg/~forecite/samples/url10.txt") puts output