Accessing webservice

This is for discussing general topics about how to use VirtualBox.
Post Reply
niao
Posts: 1
Joined: 5. Aug 2011, 22:51
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows

Accessing webservice

Post by niao »

I want to access VirtualBox webservice using c#. Firstly I created a service proxy using wsdl.exe and vboxwebService.wsdl file. ' Assuming that VirtualBox webservice is located in: http://localhost:18083/ how can I access it using c#? I am doing something like this:

Code: Select all

EndpointAddress endpoint = new EndpointAddress("http://localhost:18083/");
BasicHttpBinding binding = new BasicHttpBinding();
vboxPortTypeClient client = new vboxPortTypeClient(binding,endpoint);
and this works fine (I think)

But how then I then can get for instance version of virtualbox? I don't know how to use the following method:

Code: Select all

string test = string.Empty;
client.IVirtualBox_getVersion(test);
Post Reply