I'm trying to connect to Oracle Primavera via Oracle's Web API. Unfortunately there is not much documentation about it. I have added Primavera Web Service into my project.
So far I have following code:
Dim authService As New AuthenticationService.AuthenticationService
Dim loginObj As New AuthenticationService.Login()
Dim loginResponse As AuthenticationService.LoginResponse
authService.CookieContainer = New System.Net.CookieContainer()
authService.Url = "http://" + hostName + ":" + port + "/p6ws/services/AuthenticationService"
loginObj.UserName = userName
loginObj.Password = passwd
loginObj.DatabaseInstanceId = 1
loginObj.DatabaseInstanceIdSpecified = True
cookieContainer = authService.CookieContainer
loginResponse = authService.Login(loginObj)
Return loginResponse.Return
In authService.Login I receive "WSS header is missing from request. Can't do username token authentication."
In Primavera I have set the authentication model to cookie, but no results. What is missing?