Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error at SecurityService SignIn with Vault API

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
ATexter
795 Views, 5 Replies

Error at SecurityService SignIn with Vault API

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:

http://adndevblog.typepad.com/manufacturing/2012/06/using-vault-apis-to-check-inout-files-from-an-in...

 

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

5 REPLIES 5
Message 2 of 6
ATexter
in reply to: ATexter

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

Message 3 of 6
minkd
in reply to: ATexter

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



Dave Mink
Fusion Lifecycle
Autodesk, Inc.
Message 4 of 6
ATexter
in reply to: minkd

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

Message 5 of 6
Redmond.D
in reply to: ATexter

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


Doug Redmond
Software Engineer
Autodesk, Inc.

Message 6 of 6
ATexter
in reply to: Redmond.D

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report