Using https with the Client API

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
bbb127
Posts: 2
Joined: Thu Dec 08, 2005 1:54 pm
Location: New Zealand

Using https with the Client API

Post by bbb127 » Thu Dec 08, 2005 3:12 pm

I am wanting to develop a couple of tools that using the Vault Client API. I started working through the tutorial at http://weblogs.asp.net/jeremy_sheeley/. However, I can't get my code to login to Vault, I get a System.Web.Services.Protocols.SoapException with the message "1021 : " when the myClient.Login(hostname, username, password); line gets executed. The only difference I have from the tutorial is that I am using https instead of http. Should it be possible to login to Vault using https rather than http when using the Client API?

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Fri Dec 09, 2005 9:36 am

Yes, you should be able to login with Https. Are you using the -ssl parameter in the connection string? You may also need to specify the port if you're not using the default 443.
Linda Bauer
SourceGear
Technical Support Manager

bbb127
Posts: 2
Joined: Thu Dec 08, 2005 1:54 pm
Location: New Zealand

Post by bbb127 » Sun Dec 11, 2005 1:48 pm

If the vault service is located at https://hostname/VaultService, what should the connection string for this look like? How can this be used in the login method for a ClientInstance?

Post Reply