c# - Call WCF REST Service from Win Form Application -


I am creating a test tool to test my WCF REST services. This return data as JSN To test, I have created a tool on which Jason is on the text box to give the string as input. Therefore, the dataset is diarrhealized for dataset or dataset and show as grid. This is for readability and for data testing.

My existing button method like

  pnlOutput.Controls.Clear (); JsonTextReader Reader = New JsonTextReader (new stringreader (txtInput.Text)); String data = ""; While (reader.Read ()) {data + = reader.Value; } If (Data is included ("Table")) {DataSet ds; Ds = JsonConvert.DeserializeObject & lt; Dataset & gt; (Data); Int topPosition = 0; Foreign Currency (Data Table Datable Databases) {DataGrid Grid = New DataGrid (); Grid Data source = datable; PnlOutput.Controls.Add (grid); Grid Top = top position; Grid With = pnlOutput.Right - 10; Grid Het = (pnlOutput.Height / ds.Tables.Count) - 10; Top position = grid Height + 5; }} And {Datatale DT; Dt = JsonConvert.DeserializeObject & lt; DataTable & gt; (Data); DataGrade Grid = New DataGrid (); Grid.DataSource = dt; PnlOutput.Controls.Add (grid); Grid With = pnlOutput.Right - 10; Grid Het = pnlOutput.Height - 10; }  

The tool takes input as Jason String. Now I'm thinking of adding another textbox so that I can give the service box directly to that test box. Click on the need to get the JSN data from the URL on a button and perform the functionality as the old one.

Can anyone help me identify the possibilities of this? I do not need to add service reference because it is a common tool for testing any WCF service.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -