Problem with the first steps in API

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
poschdi
Posts: 20
Joined: Fri Apr 25, 2008 3:49 am

Problem with the first steps in API

Post by poschdi » Tue Apr 29, 2008 9:02 am

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]

shannon

Post by shannon » Tue Apr 29, 2008 10:12 am

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

poschdi
Posts: 20
Joined: Fri Apr 25, 2008 3:49 am

Post by poschdi » Wed Apr 30, 2008 5:08 am

Thx now it works :)

Post Reply