To use any web service in DotNet Application, Add The Web Reference of The webservice in the Solution.


Sample Code to Use Gold WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetGoldPrice obj = new GetGoldPrice();
String[] str =obj.GetCurrentGoldPrice("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Gold Spot Price: " + str[0].ToString());
Response.Write( "Timestamp: " + str[1].ToString());
Response.Write( "Change (%): " + str[2].ToString());



Sample Code to Use Silver WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetSilverPrice obj = new GetSilverPrice();
String str = obj.GetCurrentSilverPrice ("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Silver Spot Price: " + str.ToString());



Sample Code to Use Platinum WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetPlatinumPrice obj = new GetPlatinumPrice();
String str = obj.GetCurrentPlatinumPrice("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Platinum Spot Price: " + str.ToString());



Sample Code to Use Paladium WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetPalladiumPrice obj = new GetPalladiumPrice();
String str = obj.GetCurrentPalladiumPrice("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Palladium Spot Price: " + str.ToString());



Sample Code to Use Rhodium WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetRhodiumPrice obj = new GetRhodiumPrice();
String str = obj.GetCurrentRhodiumPrice("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Rhodium Spot Price: " + str.ToString());



Sample Code to Use Live BSE Sensex WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
Live_Sensex_Bse_Index obj = new Live_Sensex_Bse_Index();
String[] str = obj.GetLiveSensex("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Sensex: " + str[0].ToString());
Response.Write( "Change: " + str[1].ToString());
Response.Write( "Updated Time: " + str[2].ToString());



Sample Code to Use Live NSE Nifty WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
Live_Nifty_Nse_Index obj = new Live_Nifty_Nse_Index();
String[] str = obj.GetLiveNifty ("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Nifty: " + str[0].ToString());
Response.Write( "Change: " + str[1].ToString());
Response.Write( "Updated Time: " + str[2].ToString());



Sample Code to Use Crude Oil Price WebService


Add the Webservice Reference Namespace as Below
using com.freewebservicesx.www;

Call the WebMethod
GetCrudeOilPrice obj = new GetCrudeOilPrice();
String str = obj.GetOilPrice("Registered User Name" ,"Registered Password");


Access Data At your application side
Response.Write( "Crude Oil Price: " + str.ToString());