Oracle の Web API を介して Oracle Primavera に接続しようとしています。残念ながら、それに関するドキュメントはあまりありません。プロジェクトに Primavera Web Service を追加しました。
これまでのところ、次のコードがあります。
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
authService.Login で、「リクエストに WSS ヘッダーがありません。ユーザー名トークン認証を実行できません」というメッセージが表示されます。
Primavera では、認証モデルを Cookie に設定しましたが、結果はありません。何が欠けている?