Trouble moving to Vault 5.0.3

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

Moderator: SourceGear

Post Reply
tmcg
Posts: 2
Joined: Tue May 18, 2010 11:47 am

Trouble moving to Vault 5.0.3

Post by tmcg » Tue May 25, 2010 1:53 pm

I inherited a web handler that performs Vault integration from another developer who has since left my company. I updated all of the DLL references to the files I got from the 5.0.3 API download, but I can't get ServerOperations.client.ClientInstance.Login (or ServerOperations.Login()) to run successfully. The error being reported is:

Code: Select all

APIError: System.Web.Services.Protocols.SoapException: 1021 : FailServiceVersionNotSupported
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Int32[] clientSupportedVersions)
   at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword)
   at VaultClientOperationsLib.ClientInstance.Login(String urlbase, String username, String password)
   at Handler.ProcessRequest(HttpContext context) in d:\Local\DotNet\VaultHandler\VaultHandler\Handler.ashx:line 143
When I run wireshark, I see this envelope being transmitted to the server when I run my handler:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <ValidateServiceVersions xmlns="http://www.sourcegear.com/schemas/vault">
      <clientSupportedVersions>
        <int>
          7
        </int>
      </clientSupportedVersions>
    </ValidateServiceVersions>
  </soap:Body>
</soap:Envelope>
When I run the command line client, I get this envelope instead:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <ValidateServiceVersions xmlns="http://www.sourcegear.com/schemas/vault">
      <clientSupportedVersions>
        <int>
          8
        </int>
      </clientSupportedVersions>
    </ValidateServiceVersions>
  </soap:Body>
</soap:Envelope>
I'm not seeing anything extra in the command line client's code that would change that supported version value, so I'm fairly stumped as to what else I need to be doing for this to work.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Trouble moving to Vault 5.0.3

Post by Beth » Tue May 25, 2010 2:57 pm

Can you open a Vault GUI client, connect to a repository, then go to Help - Technical Support and post the environment information there? I don't need any of the license information at the bottom, just the server and client info.
Beth Kieler
SourceGear Technical Support

tmcg
Posts: 2
Joined: Tue May 18, 2010 11:47 am

Re: Trouble moving to Vault 5.0.3

Post by tmcg » Fri May 28, 2010 10:30 am

I was actually able to figure this out. The version 4 DLLs were still in the folder hierarchy. I removed them, and the application started properly connecting.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Trouble moving to Vault 5.0.3

Post by Beth » Fri May 28, 2010 1:57 pm

Thank you for the update. I'm happy to hear you are working again.
Beth Kieler
SourceGear Technical Support

Post Reply