Page 1 of 1

Problem with the first steps in API

Posted: Tue Apr 29, 2008 9:02 am
by poschdi
Hi,

I made my first steps with the Client API. I write a simple test program to login to the server. The server is installed local on my machine.

Code: Select all

ServerOperations.client.LoginOptions.URL = "http://172.17.50.104/";
ServerOperations.client.LoginOptions.User = "fmuehlenkamp";
ServerOperations.client.LoginOptions.Password = "";
ServerOperations.client.LoginOptions.Repository = "tfc";
ServerOperations.Login();
ServerOperations.Logout();
By the try to login I always got this error:

Code: Select all

The connection to the server failed: server cannot be contacted or uses a protocol that is not supported by this client. Unable to connect to http://172.17.50.104/.  No server was found at the specified URL.  
I also tried it with localhost with the same result.

I believe a very simple fault on my side ;)[/code]

Posted: Tue Apr 29, 2008 10:12 am
by shannon
You need to append VaultService to your url.

If you haven't found them yet, there are api examples here:
http://support.sourcegear.com/viewtopic.php?t=8020

--Shannon

Posted: Wed Apr 30, 2008 5:08 am
by poschdi
Thx now it works :)