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: 

Switching from Vault2008 to Vault2009

6 REPLIES 6
Reply
Message 1 of 7
dominiekvanwest
177 Views, 6 Replies

Switching from Vault2008 to Vault2009

Hi,

We are switching form Inventor2008 to Inventor2009 and from Vault2008 to Vault2009.
I made an application where I use the Web References: DocumentService and SecurityService:

----------
'login to the Vault and set up the document service
secSvc = New SecurityService.SecurityService
secSvc.Url = "http://vault/AutodeskDM/Services/SecurityService.asmx"
secSvc.SecurityHeaderValue = New Artikelnummers.SecurityService.SecurityHeader()
secSvc.SignIn("Administrator", "", "vault")

'Call vaultlogout()
docSvc = New DocumentService.DocumentServiceWse
docSvc.Url = "http://vault/AutodeskDM/Services/DocumentService.asmx"
docSvc.SecurityHeaderValue = New Artikelnummers.DocumentService.SecurityHeader()
docSvc.SecurityHeaderValue.Ticket = secSvc.SecurityHeaderValue.Ticket
docSvc.SecurityHeaderValue.UserId = secSvc.SecurityHeaderValue.UserId
-----------

Do I need to make any changes to these References so it works with Vault2009 too (if we use the same userName, userPassword and knowledgeVault as in Vault2008)?

Thanks in advance,

Dominiek
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: dominiekvanwest

The web service objects are tied to a specific version of Vault. So in
Visual Studio, you need to set your web service references to point to a
Vault 2009 server then run the Update Web Reference command.

For more information, take a look at the "Knowledgebase Articles\Different
Versions" and "Changes" pages in the SDK documentation.


Doug Redmond
Software Engineer, Autodesk Inc.
Message 3 of 7

Thanks for the fast reply.

So if I update the Web References, and copy the 4 files in ServiceCode-R5.zip (which I found on this forum btw) it should work?
Message 4 of 7
Anonymous
in reply to: dominiekvanwest

ServiceCode-R5.zip will only work with the R5 version of the server. Since
you are using the 2009 version (R7), you want to avoid that zip file.
Updating the web services should be all you need to do. You don't need any
other files.

Doug Redmond
Software Engineer, Autodesk Inc.
Message 5 of 7

If I update the Web services then he complains about the DocumentServiceWse.
Message 6 of 7
Anonymous
in reply to: dominiekvanwest

To get DocumentServiceWse to show up, you need to do the following steps:
1. Install the Web Service Extensions 3.0 from the Microsoft site. Make
sure to select the Integrate with Visual Studio option.
2. In your project, add a reference to Microsoft.Web.Services3.
3. Update your Document Service web reference.

If those steps don't work, it might because that version of Visual Studio
doesn't work with WSE 3.0. The samples are set to work with VS 2005. VS
2003 will not work, and VS 2008 has not been tested. If you are using VS
2008, let me know.
If Visual Studio will not work with WSE 3.0, you can copy over the
references from the one of the SDK samples. Just to go VaultFileBrowser\Web
References\DocumentSvc, copy over the four files, and update Reference.cs to
match your namespace.


Doug Redmond
Software Engineer, Autodesk Inc.
Message 7 of 7

Im working with VS 2005

But I found the solution.
DocumentServiceWse is not needed anymore.
DocumentService will do it.

Thanks for all the help

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

Post to forums  

Autodesk Design & Make Report