Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Using (insert language) I am able to authenticate, but subsequent calls using other service managers are failing. Why?

0
Posted

Using (insert language) I am able to authenticate, but subsequent calls using other service managers are failing. Why?

0

Each Oracle Content DB Web Service (Manager), has a unique end-point address. Most programming languages when generating stubs for these Web Services will treat each stub as a separate entity with its own encapsulated session state. However, the stubs must share a common session state (i.e. use the same cookie[s]) for web service calls to Oracle Content DB. The client Java Content DB Development Kit and C# .NET Development Kit automatically handles session management/tracking out-of-the-box through its proxy classes. Raw generated bindings (be it Java, C#, etc) do not. C# sample code is provided below demonstrating explicit setting and sharing of a CookieContainer item (the C# devkit proxy classes take care of this automatically): // C# Example Code: // end-point constants string MGR_FILE = “FileManager”; string MGR_REMOTELOGIN = “RemoteLoginManager”; // connection details string baseWSURL = “http://host:7777/content/ws/”; string username = “matt”; string password = “welcome1”; // cook

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123