Hello,
I've programmed several VB.NET Apps and Inventor API in the past, but I'm new in programming Vault API.
I want to Check In a file into Vault and I have tried to use the class VaultHelper of this sample:
But my Project crashs in the constructor of the class VaultHelper the bold marked line:
Public Sub New(ByVal cadserver As String, ByVal login As String, ByVal password As String, ByVal knowledgeVault As String) ' Security Service _secSvc = New SecurityService() _secSvc.Url = "http://" & cadserver & "/AutodeskDM/Services/SecurityService.asmx" _secSvc.SecurityHeaderValue = New Autodesk.Connectivity.WebServices.SecuritySvc.SecurityHeader() _secSvc.SignIn(login, password, knowledgeVault) ' Document Service _docSvc = New DocumentService() _docSvc.SecurityHeaderValue = New Autodesk.Connectivity.WebServices.DocumentSvc.SecurityHeader() _docSvc.SecurityHeaderValue.Ticket = _secSvc.SecurityHeaderValue.Ticket _docSvc.SecurityHeaderValue.UserId = _secSvc.SecurityHeaderValue.UserId '_docSvc.Url = "http://" & cadserver & "/AutodeskDM/Services/DocumentService.asmx" fileAssocParamList = New ArrayList() End Sub
The error message I get is:
Der Wert des HTTP-Headers 'SOAPAction' wurde vom Server nicht erkannt: http://AutodeskDM/Services/Security/11/15/2011/SignIn.
Translated that means:
The Value of the HTTP-Header 'SOAPAction' could not be identified by the Server: http://AutodeskDM/Services/Security/11/15/2011/SignIn.
I hope you can help me.
Best regards,
Alexander
Solved! Go to Solution.
Solved by Redmond.D. Go to Solution.
I have forgotten to tell you, that I am using...
Win7 Pro x64
VB 2010 Express
Vault 2012 Workgroup Server
Vault 2013 Workgroup Client
Inventor 2013
A 2013 client cannot talk to a 2012 server unless it uses the 2012 server API. All 2013 clients released by Autodesk use the 2013 server API.
However, a 2012 client can talk to a 2013 server.
-Dave
Thanks for your response.
You are right, it is a 2013 Server. My client and my server are comunicating to each other properly.
My problem is still logging in with the API.
Alexander
First, I suggest using the WebServiceManager instead of calling "new" on each of your services.
if you really want to keep your current code, you need to update the URL. Starting in 2013, the web service URLs have a version component in them. For example, if your code wanted to connect to the 2013 SecurityService, it should look like this...
"http://" & cadserver & "/AutodeskDM/Services/v17/SecurityService.asmx
Thanks for your information, Doug,
If it is the better way, I will try to use the WebServiceManager.
But If I will keep my code, what is about the URL for the DocumentService? Is it the same version component?
Just for your information:
If you look at the "SignIn Method" of the "SecurityService Class" in the documentation of the Vault 2013 SDK, you will find exactly the code snippet, I have used and posted.
Best regards,
Alexander