How to add your knowledge

Demonstration: Talking to Vault

    Table of contents
    1. 1. Introduction
    2. 2. URLs
    3. 3. Examples

    Your draft page is created and may be published by a moderator

    Here should be a demonstration of how you connect to the vault webservices.  

    Introduction

    Before communicating with a Vault server you should review the VaultAPI help, namely the "Best Practices" section.  The help file is available on the system where the vault server has been installed.

    URLs

    The vault server exposes 9 web services each accessed at:

     

    http://someserver/AutodeskDM/Services/*****Service.asmx?WSDL

     

    where the stars are replaced with the service name.  For example the document service url is:

     

     

    http://someserver/AutodeskDM/Services/DocumentService.asmx?WSDL

     

     

    The 9 services are:

    1. Admin
    2. Knowledge Vault
    3. Information
    4. Security
    5. Document
    6. Item
    7. Change Order
    8. Forum
    9. Package

     

    The last four services are only available with Product Stream.  

    Additionally if you visit the url without the ?WSDL in your browser you will see a desciption of the methods provided by the webservice.

    http://localhost/@api/deki/files/39224/=SecurityService.jpg?size=bestfit&width=600&height=511

     

     

    Examples

    Using the suds python library you can connect to vault:

    >>> from suds.client import Client
    >>> client = Client("http://localhost/AutodeskDM/Services/SecurityService.asmx?WSDL")
    >>> print client
    
    Suds ( https://fedorahosted.org/suds/ )  version: 0.4 (beta)  build: R685-20100513
    
    Service ( SecurityService ) tns="http://AutodeskDM/Services/Security/01/17/2008/"
       Prefixes (1)
          ns0 = "http://AutodeskDM/Services/Security/01/17/2008/"
       Ports (2):
          (SecurityServiceSoap)
             Methods (11):
                AddSystemACL(ArrayOfACE entries, )
                GetACLUpdateRestrictions(xs:long entityId, ArrayOfACE entries, )
                GetACLsByEntityIds(ArrayOfLong entityIds, )
                GetAllAccessPermissionsAndGroups()
                GetEntACLsByEntityIds(ArrayOfLong entityIds, )
                SetSystemACLs(ArrayOfLong entityIds, xs:long aclId, )
                SignIn(xs:string userName, xs:string userPassword, xs:string knowledgeVault, )
                SignIn2(xs:string userName, xs:string userPassword, )
                SignOut()
                UpdateACL(xs:long entityId, ArrayOfACE entries, PrpgType prpgType, )
                UpdateACLEntries(xs:long aclId, ArrayOfACE entries, )
             Types (19):
                ACE
                ACL
                AccessPermis
                AccessPermisAndGrp
                AccessPermisDef
                AccessPermisGrp
                ArrayOfACE
                ArrayOfACL
                ArrayOfAccessPermis
                ArrayOfAccessPermisDef
                ArrayOfAccessPermisGrp
                ArrayOfLong
                ArrayOfSecRestric
                EntACL
                EntsAndACLs
                PrpgType
                SecRestric
                SecRestricCode
                SecurityHeader
          (SecurityServiceSoap12)
             Methods (11):
                AddSystemACL(ArrayOfACE entries, )
                GetACLUpdateRestrictions(xs:long entityId, ArrayOfACE entries, )
                GetACLsByEntityIds(ArrayOfLong entityIds, )
                GetAllAccessPermissionsAndGroups()
                GetEntACLsByEntityIds(ArrayOfLong entityIds, )
                SetSystemACLs(ArrayOfLong entityIds, xs:long aclId, )
                SignIn(xs:string userName, xs:string userPassword, xs:string knowledgeVault, )
                SignIn2(xs:string userName, xs:string userPassword, )
                SignOut()
                UpdateACL(xs:long entityId, ArrayOfACE entries, PrpgType prpgType, )
                UpdateACLEntries(xs:long aclId, ArrayOfACE entries, )
             Types (19):
                ACE
                ACL
                AccessPermis
                AccessPermisAndGrp
                AccessPermisDef
                AccessPermisGrp
                ArrayOfACE
                ArrayOfACL
                ArrayOfAccessPermis
                ArrayOfAccessPermisDef
                ArrayOfAccessPermisGrp
                ArrayOfLong
                ArrayOfSecRestric
                EntACL
                EntsAndACLs
                PrpgType
                SecRestric
                SecRestricCode
                SecurityHeader
    
    
    >>>