Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
require 'rubygems'
require 'savon'
require 'pp'
url = "http://www.xignite.com/xFinancials.asmx?WSDL"
client = Savon::Client.new(url)
response = client.request :get_other_ratios do
// Axis2 does not handle .NET's WSDL serialized of enums very much.
AdjustmentMethods adj = AdjustmentMethods.Factory.create();
AdjustmentMethods_type0[] adjInnerTypes = new AdjustmentMethods_type0[1];
adjInnerTypes[0] = AdjustmentMethods_type0.Factory.fromString(AdjustmentMethods_type0._SplitOnly, SERVICE_URI);
adj.setAdjustmentMethods_type0(adjInnerTypes);
getQuotesArguments.setAdjustmentMethod(adj);
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub;
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub.GetGlobalHistoricalQuotesRangeResponse;
import com.xignite.www.services.XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub.*;
import javax.xml.stream.util.*;
import org.apache.axis2.addressing.*;
import java.util.*;
public class Axis2Test {
private XigniteGlobalHistoricalXigniteGlobalHistoricalSoapStub stub;