You will first need to add a web reference within Visual Studio.
  • Right-click the References node in Solution Explorer, followed by Add Service Reference....
  • In the window which appears click Advanced... followed by Add Web Reference....
  • Enter the URL for the service into the URL field (http://labs.bwhazel.co.uk/services/GaussGraphService.asmx) and enter a name for the reference once found. I have simply named it BWHazelLabs for this demo.
Once added, the web reference can be used like any other reference in .NET.
  • Add the web reference to the code:
C#
using ProjectNamespace.BWHazelLabs
VB.NET
Imports ProjectNamespace.BWHazelLabs
  • Create a new instance of the GaussGraphService class and call the ToCsv() method:
C#
GaussGraphService service = new GaussGraphService();
string csv = service.ToCsv(gvoutputString);
VB.NET
Dim service As New GaussGraphService()
Dim csv As String = service.ToCsv(gvoutputString)

Last edited Jul 16, 2012 at 10:46 PM by BWHazel, version 2

Comments

No comments yet.