Page 1 of 1

Trouble moving to Vault 5.0.3

Posted: Tue May 25, 2010 1:53 pm
by tmcg
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.

Re: Trouble moving to Vault 5.0.3

Posted: Tue May 25, 2010 2:57 pm
by Beth
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.

Re: Trouble moving to Vault 5.0.3

Posted: Fri May 28, 2010 10:30 am
by tmcg
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.

Re: Trouble moving to Vault 5.0.3

Posted: Fri May 28, 2010 1:57 pm
by Beth
Thank you for the update. I'm happy to hear you are working again.