SHARE
TWEET

Untitled

a guest Dec 16th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static DataSet Feldolgozas()
  2.         {
  3.             MNBArfolyamService.MNBArfolyamServiceSoapClient client = new MNBArfolyamService.MNBArfolyamServiceSoapClient();
  4.             client.Open();
  5.             MNBArfolyamService.GetCurrentExchangeRatesRequestBody requestBody = new MNBArfolyamService.GetCurrentExchangeRatesRequestBody();
  6.  
  7.  
  8.             var current = client.GetCurrentExchangeRates(requestBody);
  9.  
  10.             string result = current.GetCurrentExchangeRatesResult;
  11.             client.Close();
  12.  
  13.  
  14.             XDocument xdoc = XDocument.Parse(result);
  15.  
  16.             DataSet dataSet = Dataset(xdoc);
  17.            
  18.             return dataSet;
  19.  
  20.         }
  21.  
  22.         static DataSet Dataset(XDocument xDocument)
  23.         {
  24.             StringReader theReader = new StringReader(xDocument.ToString());
  25.             DataSet theDataSet = new DataSet();
  26.             theDataSet.ReadXml(theReader);
  27.  
  28.             return theDataSet;
  29.  
  30.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top