mercredi 20 mai 2015

C# GUI Access Web Service

I have a web service running on a local server. In it I have a method that returns a json representation of an Oracle database query, which is converted from a List<Dictionary<String, String>> object.

I have a GUI program that needs the same data. If I try to move the query to the GUI, I have to require the user to install Oracle on there system, according to what I read after getting the following error:

Could not load file or assembly 'Oracle.DataAccess, Version=...'

I don't want to make my users install Oracle on their system.

My solution has been to just access the existing logic running on a web service (.NET 3.5 WebForms App). I wrote another web service that returns the List<Dictionary<String, String>> object, instead of going through the hassle of converting it to a json object.

How can I get this from the GUI?

In my initial searches I found a few links that said it was possible, or some where they returned an object in json format. But nothing for what I was looking for explicitly.

Any help?




Aucun commentaire:

Enregistrer un commentaire