stopcode.net

Dave Knipper Was Here

VeevaVault - .NET Integration Guide (Part 1 - Creating and Persisting a VeevaVault Authorized Session)

This is essentially a tutorial on how to build a .NET REST Client.

Before we can do anything with VeevaVault, we need to make sure we have a valid VeevaVault authorized session going. We will be using a .NET Web Application for these posts.

1. Create a set of simple POCs to hold the VeevaVault authorized session information. These classes hold the deserialized response from VeevaVault to hold authentication information. The classes almost always come back with these classes as response containers anyway. 2. Configure the VeevaVault session authentication settings. Add these configuration settings to your web.config and set the values to your settings. VeevaVault requires a user agent in the request, so leave FakeUserAgent setting as is. 3. If you want, encapsulate your VeevaVault authentication settings in some static properties. 4. The following class will exposes methods that will allow your application to retrieve a response from VeevaVault containing all the authorized session information you will need to make any other calls to the VeevaVault API. 5. Add the VeevaVault Authentication Information to an Application Variable. One set of auth info can be shared by everyone throughout the whole application. That's It!