Last active
January 13, 2016 23:49
-
-
Save FishOfPrey/277ee04fafedf36f3543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Generated by FuseIT WSDL2Apex (http://www.fuseit.com/Solutions/SFDC-Explorer/Help-WSDL-Parser.aspx) | |
// http://globalcurrencies.xignite.com/xGlobalCurrencies.asmx?wsdl | |
//Methods Included: GetRealTimeRate | |
//Methods Excluded: GetRealTimeRates, GetBars, GetHistoricalRatesRange, GetLatestCrossRates, GetHistoricalRates, GetRealTimeRateTable, ListActiveCurrencies, ConvertRealTimeValue, ListCurrencies, GetAllRealTimeRates, GetLatestCrossRate, GetBestCrossRate, GetBestCrossRates, ConvertHistoricalValue, GetHistoricalRate, GetLatestHistoricalRate, GetLatestHistoricalRates, GetHistoricalRatesRanges, GetOfficialHistoricalRate, GetOfficialRate, GetOfficialRates, GetOfficialHistoricalRates, GetTick, GetTicks, GetBar, GetChartBars, GetLondonHistoricalRatesRange, GetForwardRate | |
// Primary Port Class Name: XigniteGlobalCurrenciesSoap | |
public class wwwXigniteComServices { | |
public class GetRealTimeRate_element { | |
public String Symbol; | |
private String[] Symbol_type_info = new String[]{'Symbol','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] apex_schema_type_info = new String[]{'http://www.xignite.com/services/','true','false'}; | |
private String[] field_order_type_info = new String[]{'Symbol'}; | |
} | |
public class GetRealTimeRateResponse_element { | |
public wwwXigniteComServices.Rate GetRealTimeRateResult; | |
private String[] GetRealTimeRateResult_type_info = new String[]{'GetRealTimeRateResult','http://www.xignite.com/services/','Rate','0','1','false'}; | |
private String[] apex_schema_type_info = new String[]{'http://www.xignite.com/services/','true','false'}; | |
private String[] field_order_type_info = new String[]{'GetRealTimeRateResult'}; | |
} | |
public class Header { | |
public String Username; | |
public String Password; | |
public String Tracer; | |
private String[] Username_type_info = new String[]{'Username','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Password_type_info = new String[]{'Password','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Tracer_type_info = new String[]{'Tracer','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] apex_schema_type_info = new String[]{'http://www.xignite.com/services/','true','false'}; | |
private String[] field_order_type_info = new String[]{'Username','Password','Tracer'}; | |
} | |
public class Rate { | |
public String Outcome; | |
public String Message; | |
public String Identity; | |
public Double Delay; | |
private String[] Outcome_type_info = new String[]{'Outcome','http://www.xignite.com/services/','OutcomeTypes','1','1','false'}; | |
private String[] Message_type_info = new String[]{'Message','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Identity_type_info = new String[]{'Identity','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Delay_type_info = new String[]{'Delay','http://www.xignite.com/services/','double','1','1','false'}; | |
public String BaseCurrency; | |
public String QuoteCurrency; | |
public String Symbol; | |
public String Date_x; | |
public String Time_x; | |
public String QuoteType; | |
public Double Bid; | |
public Double Mid; | |
public Double Ask; | |
public Double Spread; | |
public String Text; | |
public String Source; | |
private String[] BaseCurrency_type_info = new String[]{'BaseCurrency','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] QuoteCurrency_type_info = new String[]{'QuoteCurrency','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Symbol_type_info = new String[]{'Symbol','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Date_x_type_info = new String[]{'Date','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Time_x_type_info = new String[]{'Time','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] QuoteType_type_info = new String[]{'QuoteType','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Bid_type_info = new String[]{'Bid','http://www.xignite.com/services/','double','1','1','false'}; | |
private String[] Mid_type_info = new String[]{'Mid','http://www.xignite.com/services/','double','1','1','false'}; | |
private String[] Ask_type_info = new String[]{'Ask','http://www.xignite.com/services/','double','1','1','false'}; | |
private String[] Spread_type_info = new String[]{'Spread','http://www.xignite.com/services/','double','1','1','false'}; | |
private String[] Text_type_info = new String[]{'Text','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] Source_type_info = new String[]{'Source','http://www.xignite.com/services/','string','0','1','false'}; | |
private String[] apex_schema_type_info = new String[]{'http://www.xignite.com/services/','true','false'}; | |
private String[] field_order_type_info = new String[]{'Outcome','Message','Identity','Delay','BaseCurrency','QuoteCurrency','Symbol','Date_x','Time_x','QuoteType','Bid','Mid','Ask','Spread','Text','Source'}; | |
} | |
public class XigniteGlobalCurrenciesSoap { | |
public String endpoint_x = 'http://globalcurrencies.xignite.com/xGlobalCurrencies.asmx'; | |
public Map<String,String> inputHttpHeaders_x; | |
public Map<String,String> outputHttpHeaders_x; | |
public String clientCertName_x; | |
public String clientCert_x; | |
public String clientCertPasswd_x; | |
public Integer timeout_x; | |
public wwwXigniteComServices.Header Header; | |
private String Header_hns = 'Header=http://www.xignite.com/services/'; | |
private String[] ns_map_type_info = new String[]{'http://www.xignite.com/services/','wwwXigniteComServices'}; | |
public wwwXigniteComServices.Rate GetRealTimeRate(String Symbol) { | |
wwwXigniteComServices.GetRealTimeRate_element request_x = new wwwXigniteComServices.GetRealTimeRate_element(); | |
wwwXigniteComServices.GetRealTimeRateResponse_element response_x; | |
request_x.Symbol = Symbol; | |
Map<String, wwwXigniteComServices.GetRealTimeRateResponse_element> response_map_x = new Map<String, wwwXigniteComServices.GetRealTimeRateResponse_element>(); | |
response_map_x.put('response_x', response_x); | |
WebServiceCallout.invoke( | |
this, | |
request_x, | |
response_map_x, | |
new String[]{endpoint_x, | |
'http://www.xignite.com/services/GetRealTimeRate', | |
'http://www.xignite.com/services/', | |
'GetRealTimeRate', | |
'http://www.xignite.com/services/', | |
'GetRealTimeRateResponse', | |
'wwwXigniteComServices.GetRealTimeRateResponse_element'} | |
); | |
response_x = response_map_x.get('response_x'); | |
return response_x.GetRealTimeRateResult; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment