Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OAC Remove Folder SOAP operation failing with Invalid session ID or session expired

Accepted answer
21
Views
1
Comments
Muthu S
Muthu S Rank 2 - Community Beginner

Hi,

I created a new OAC instance. I am trying to delete a xdo report using removeFolder soap operation. I generate the stub using the wsdl and calling it from an application in java. The session id is valid but when calling removeFolder with recursive set to true is giving the below error. Same stub works fine when we use unarchive or unarchive operations. Not sure why removeFolder alone is failing.

Exception in thread "main" com.sun.xml.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: Authentication error. Invalid session ID or session expired (session ID ending with 'qqrgi8r') Please see the server log to find more detail regarding exact cause of the failure.
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:163)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at com.sun.xml.ws.client.sei.StubHandler.readResponse(StubHandler.java:223)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:176)
at com.sun.xml.ws.db.DatabindingImpl.deserializeResponse(DatabindingImpl.java:263)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:88)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:61)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:131)
at com.sun.proxy.$Proxy43.removeFolder(Unknown Source)

For the same user, with the session Id generated from the application, if I run the below using SOAPUI tool, it's removing it without any issues.

  <v12:removeFolder>
     <v12:path>/shared/Financials/Budgetary Control/CarryForwardOpenPOReport copy.xdo</v12:path>
<v12:recursive>true</v12:recursive>
<v12:sessionID>sessionid</v12:sessionID>
</v12:removeFolder>

Best Answer

  • Muthu S
    Muthu S Rank 2 - Community Beginner
    Answer ✓

    This is resolved, there was an issue in the soap request not using the correct oac host.