Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show only
|
Search instead for
Did you mean:
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service.Translate
How does the API AddUser command work? It's asking for roleIDArray, VaultIdArray and licenseIdArray in the function. How would I use this if I simply want to assign no roles, vaults, etc to the user at time of creation?
System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://AutodeskDM/Services/AdminService/01/02/2007/AddUser.
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at Microsoft.Web.Services3.WseProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
It looks like I might have the admin service setup incorectly. Is there some code to check against?
The error indicates that your client code doesn't match the server version.
It appears that your client is set for the Vault or Productstream 2008
release. Are you trying to connect to a Vault 5 or Vault 2009 Beta server?
To fix the problem you need to sync your client to the correct version. You
can do this by opening your project in Visual Studio, updating the URL for
your web service to point to a server running the correct version, and
running the "Update Web Service" command. These steps have to be done for
each web service in your project.
For more information, see the "Different Versions" page of the Knowledge
Base in the API docs.
I'm not sure this is the issue, I started with the sample from the 2008 SDK, "VaultList" and modified it.
The sample works ok but my new code fails. I saw in the error the URL is "http://AutodeskDM/Services/AdminService/01/02/2007/AddUser." I believe it should start... "http://localhost/AutodeskDM/..."
This is my code:
Dim adminSrv As Admin.AdminService = New Admin.AdminService
adminSrv.SecurityHeaderValue = New VaultList.Admin.SecurityHeader
adminSrv.SecurityHeaderValue.UserId = adminSrv.SecurityHeaderValue.UserId
adminSrv.SecurityHeaderValue.Ticket = adminSrv.SecurityHeaderValue.Ticket
adminSrv.Url = "http://localhost/AutodeskDM/Services/DocumentService.asmx"
Hmm... that might be a bug. I'll look into it.
In the meantime, pass in empty arrays instead. That should also result in a
user with no roles or Vaults.
Thanks,
Doug Redmond
Software Engineer, Autodesk Inc.
I just ran a test in Vault 2010, and passing in
null still works for roleIdArray and
size=3>vaultIdArray.
Looking at the code from your post,
face="Times New Roman" size=3>the 'atype' parameter looks wrong. It should
be AuthTyp, with no 'e' at the end. Did you copy and paste directly from
your source code? Is there a chance that any of the other parameters could
have a null value?
Call GetAllKnowledgeVaults in the Knowledge Vault Service to get a list of
all the vaults.
Call AddUser in the Admin Service to create a new user with the proper Vault
membership.
Call UpdateUserInfo in the Admin Service to update the Vault membership of
an existing user.
--
Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/