我正在尝试通过 Oracle 的 Web API 连接到 Oracle Primavera。不幸的是,没有太多关于它的文档。我已将 Primavera Web 服务添加到我的项目中。
到目前为止,我有以下代码:
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,但没有结果。什么不见了?