Trouble with Vault SDK samples

Trouble with Vault SDK samples

Anonymous
Not applicable
447 Views
4 Replies
Message 1 of 5

Trouble with Vault SDK samples

Anonymous
Not applicable
Is there a discussion group that deals with the Vault API? I've opened the VaultFileBrowser from the SDK, it loads but generates an error on loading. The project uses Web References (which I am new to) and it seems the code calls for methods that are not members of the references included with the sample. the main issue seems to be with the DocumentSvc reference. I've tried updating the references. I'dlove to get this running any help would be great
0 Likes
448 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You can add/verify the Web Reference fairly easily. In Visual Studio, right click on the project in the solution explorer and select Add Web Reference. It'll bring up a dialog asking for a URL, so paste in "http://localhost/AutodeskDM/Services/DocumentService.asmx", replacing the localhost with the location of the server hosting Vault. Give it a name, and then add it. Then you can reference the Vault stuff via DocumentServiceName.Class.

You're going to be needing the Security Service in order to log into the Vault. Its address is "http://localhost/AutodeskDM/Services/SecurityService.asmx". I believe there's sample code in the Vault API help about this.
0 Likes
Message 3 of 5

Anonymous
Not applicable
That worked when I added the AdminService but I received an error when attempting to add the ItemService (see attached image) to the VaultList sample.
0 Likes
Message 4 of 5

Anonymous
Not applicable
That's an odd one. Googling seems to imply the presence of an errant ampersand in an XML file. Perhaps something is coming down from the Vault Web Service via SOAP that is killing the import?

Can't really say for sure.

Edit:
http://social.msdn.microsoft.com/forums/en-US/winformsdesigner/thread/9b346264-b744-43c1-86e8-7486fea87268/
Maybe this is related? Edited by: peter.townsend on Feb 4, 2010 6:09 PM
0 Likes
Message 5 of 5

Anonymous
Not applicable
Vault doesn't have a customization newsgroup at the moment, but you can post
your API questions in the regular Vault newsgroup:
http://discussion.autodesk.com/forums/forum.jspa?forumID=101
Just make it clear in the title that you are talking about the API.

I think you are running into a common problem with Visual Studio 2008 and
WSE 3.0. The workaround is explained on the Introduction page of the Vault
API documentation. Scroll to the bottom of the page and there should be a
section titled "Addendum - Working with Visual Studio 2008"

--
-- Doug Redmond
Software Engineer, Autodesk Inc.
http://justonesandzeros.typepad.com/
0 Likes