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
<?php
// define the SOAP client using the url for the service
$client = new soapclient('http://www.xignite.com/xGlobalHistorical.asmx?WSDL', array('trace' => 1));
// create an array of parameters
$param = array(
'Identifier' => "BMW.DE",
'IdentifierType' => "Symbol",
'StartDate' => "7/5/2011",
'EndDate' => "7/4/2012");
<?php
// define the SOAP client using the url for the service
$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array("Username" => "your-username", "Password" => "your-password", "Tracer" => ""));
// attach SOAP header
// define the SOAP client using the url for the service
$client = new soapclient('http://www.xignite.com/xMetals.asmx?WSDL',array('trace' => 1));
$client->__setSoapHeaders(array($xignite_header));
// create an array of parameters
// 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;