02-03-2012 08:26 AM
I am trying to use the new SASStoredProcessService (StoredProcessService.dll and not the old way sps.dll).
The following experience is ok but i would not to send the userContext (because i am in a SEG Custom Task already connected)
Dim usrContext As New
Dim login As New SAS.BI.AuthenticationService.ClientUserContext.Login
' Initiate connection
login = usrContext.GetOmrCredentials()
' Define stored process
Dim stp As New
any ideas ?
02-03-2012 12:57 PM
I believe you still need to pass a user context object, but you're correct: you should not have to reauthenticate.
I'll see if I can find an example for getting the user context with an existing session. In the meantime, you might see if you can make use of the information in SAS.Tasks.Toolkit.Helpers.SasMetadataProfile class.
I think that if you make use of that class, you'll have add additional references to your project for:
That's just a requirement to resolve some external dependencies when building the project. The classes within those DLLs are not documented for customer use: only the classes in SAS.Tasks.Toolkit.dll.