Trouble moving to Vault 5.0.3
Posted: 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:
When I run wireshark, I see this envelope being transmitted to the server when I run my handler:
When I run the command line client, I get this envelope instead:
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.
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
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>
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>