A new OData version of this WCF Service can be found at http://odata.spws.me.uk> or you can try the new MVC4 API version or our new Web Api v2 Demo or the Angular MVC5 demo that consumes this WCF Service
NOTE: The data used by this service is outdated and incomplete due to the withdrawal of the CSV download files from Yahoo Finance.
Share Price WCF Service allows users the ability to retrieve share prices using the old SOAP RPC method (via BasicHttpBinding), or the REST method (via WebHtpBinding). Share Price data web service, is an xml(soap)/wcf(supports SOAP,REST( supports .NET/NON .NET e.g. iPhone),RSS,JSON and ATOM) web service that provides prices for these market indexes - FTSE100, AIM, EuroStoxx50, IBEX35, CAC40, AEX, DAX, MIBTEL, Dow Jones, Techmark 100, Hang Seng, Strait Times, OMXC20, IPC, IBOVESPA, and ALL ORDINARIES . Most Web Service Clients allow the export of data to xml format.For currency cross rates for free goto webservicex.net
Consuming the WCF Service via SOAP RPC method (via BasicHttpBinding)
You can now use Task-based ops with this service when consumed using a .NET 4.5 winforms application. Therefore you can write something like: private async void loaddata() { ServiceReference1.Service1Client clnt = new ServiceReference1.Service1Client(); DataSet ds; ds = await clnt.GetAllCompaniesAsync(1); dataGridView1.DataSource = ds.Tables[0]; dataGridView1.AutoGenerateColumns = true; }
Please note you cannot implement this way on windows phone 8, currently, on that platform you have to use event based pattern.
Make sure that the client config file only contains the 1 BasicHttpBinding, remove all WebHttpBinding references.
You will need to increase the amounts for both maxBufferSize and maxReceivedMessageSize in the <basicHttpBinding> part of the <bindings> section in the applications config file, if using the method GetAllData4Desktop() or GetAllData4DesktopXml(), due to the amount of data being returned.
Screenshots on howto consume our WCF service in c#/vb.net can be found (plus links on how to consume RESTful wcf/SOAP RPC in java/php) here.
Consuming the WCF Service via REST method (via WebHttpBinding)
To consume a WCF REST method in a webforms/winforms client application, you can in .NET use either Httpwebrequest/Httpwebresponse, or the newer HttpClient (comes included as part of the WCF REST Starter Kit Preview 2 - see Microsoft.Http.dll in the assemblies folder after installation). Code screenshot of consuming WCF REST in .NET 4 (c#) winforms application using HttpClient
Automatic help documentation for Restful Service
This site is best viewed at 1024*768 screen resolution.