Keeping "CS Web Service session" alive while uploading big files.

Hi.
I have a problem when I'm uploading big files, which takes longer than the session timeout value, causing the upload to fail.
As you all know uploading a file is a three step process:
1). Create a new DocumentDefinition Item on the server as a placeholder.
2). Open an HTTP connection to the created placeholder and transfer the data using the HTTPConnection.put() method.
3). Create the final document using the FileManager by passing in the destination folder and the document definition.
The problem is that step 2 take so long that the "CS Web Service Session" times out and thus step 3 can not be completed. The Developer guide gives a utility method for creating an HTTP connection for step 2 and it states the folllowing "..you must create a cookie for the given domain and path in order to keep the session alive while transferring data." But this only keeps the session of the HTTP Connection alive and not the "CS Web Service Session". As in my case step 2 completes succesfully and the moment I peform step 3 it throws an ORACLE.FDK.SessionError:ORACLE.FDK.SessionNotConnected exception.
How does one keep the "CS Web Service Session" alive?
Thanks in advance
Regards.

Okay, even a thread that pushes dummy stuff through once in a while doesn't help. I'm getting the following when the keep alive thread kicks in while uploading a big file.
"AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (409)Conflict
faultActor:
faultNode:
faultDetail:
{}:return code: 409
<HTML><HEAD><TITLE>409 Conflict</TITLE></HEAD><BODY><H1>409 Conflict</H1>Concurrent Requests On The Same Session Not Supported</BODY></HTML>
{http://xml.apache.org/axis/}HttpErrorCode:409
(409)Conflict
     at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:732)
     at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
     at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
     at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
     at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
     at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
     at org.apache.axis.client.Call.invoke(Call.java:2748)
     at org.apache.axis.client.Call.invoke(Call.java:2424)
     at org.apache.axis.client.Call.invoke(Call.java:2347)
     at org.apache.axis.client.Call.invoke(Call.java:1804)
     at oracle.ifs.fdk.FileManagerSoapBindingStub.existsRelative(FileManagerSoapBindingStub.java:1138)"
I don't understand this, as the exception talks about "Concurrent Requests On The Same Session", but if their is already a request going on why is the session timing out in the first place?!
I must be doing something really stupid somewhere. Aia ajay jay what a unproductive day...
Any help? It will be greatly appreciated...

Similar Messages

  • WEB Service Session - Login

    Hello Experts,
    I have to consume a BOBJ Web Service Session in SAP Netweawer.
    Hello,
    We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.
    I've created an proxy object on the SAP Netweaver side in the following way :
    se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl
    Then I've created an Port using soamanager.
    I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.
    Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).
    I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.
    Could You help me ?
    Greetings
    Wojciech
    Here my coding :
    REPORT  ztest.
    DATA text TYPE string.
    DATA : lr_proxy TYPE REF TO zsco_session_port.  " its my session proxy object
    DATA : oref   TYPE REF TO cx_root.
    TRY.
        CREATE OBJECT lr_proxy
          EXPORTING
            logical_port_name = 'LP1'.
      CATCH cx_ai_system_fault INTO oref.
        text = oref->get_text( ).
    ENDTRY.
    DATA get_server_info_in TYPE zsget_server_info_soap_in.
    DATA get_server_info_out TYPE zsget_server_info_soap_out.
    THIS IS WORKING WELL
    TRY.
        CALL METHOD lr_proxy->get_server_info
          EXPORTING
            input  = get_server_info_in
          IMPORTING
            output = get_server_info_out.
      CATCH cx_ai_system_fault  INTO oref..
      CATCH zscx_dswsexception  INTO oref..
      CATCH cx_ai_application_fault  INTO oref..
    ENDTRY.
    break-point.
    AND THIS IS ENDINNG WITH EXCEPTION
    TRY.
        CALL METHOD lr_proxy->login
          EXPORTING
            input  = login_in
          IMPORTING
            output = login_out.
      CATCH cx_ai_system_fault INTO oref.
        text = oref->get_text( ).
    _ CATCH zscx_dswsexception INTO oref.   this exeption is being called_
        text = oref->get_text( ).
      CATCH cx_ai_application_fault INTO oref.
        text = oref->get_text( ).
    ENDTRY.

    Hello,
    I struggle with exactly the same problem accessing the login webservice of the BOE server. Unfortunately the previous answer did not help me since I don't understand it
    Anyone able to enlighten me?
    Edit: Nevermind, I just found out by myself.
    Thanks,
    Sebastian
    Edited by: Sebastian Solzbacher on Nov 25, 2011 9:43 AM

  • Web Service session manager not found.

    I'm trying to understand how to use the HTTP utilities, and I'm having trouble just creating a session.  I get a Web Service session manager not found error.  I've read where the client has to support cookies.  My eventual client will be a labview VI that talks to a web server.  I llooked at the Toolsptions, but don't see anything related to cookies.  Not sure if that's what's causing this anyway, but I'm just digging.  Also, I want to eventually send http messages across TCP/IP.  Do I need to use the TCP/IP VIs (i.e. open connection, etc) or do I use the http utilities alone.  If both are needed, how does the httpRequestID and the TCP/IP connection ID correlate.
    Attachments:
    htttGetSession.vi ‏9 KB
    WebServerError.PNG ‏13 KB

    Hi can you please let me know how you resolved this issue?

  • BOBJ WEB Service Session - Login

    Hello Experts,
    I have to consume a BOBJ Web Service Session in SAP Netweawer.
    Hello,
    We have SAP NetWeaver 2004s and BusinessObjects Enterprise 12.0.
    I've created an proxy object on the SAP Netweaver side in the following way :
    se80->Create->Enterprice Service->Service-Consumer->URL/HTTP Destination-> URL = http://<host>:8080/dswsbobje/services/Session?wsdl
    Then I've created an Port using soamanager.
    I't seems to be working, becouse methods like : getServerInfo, getServerInfoDetails are working ok.
    Now I have a problem with the method Login. As parameter for this method I see only structure CREDENTIAL, which have only one field CONTROLLER (PRXCTRLTAB).
    I've expected to have in the Parameters for this method a structure EnterpriceCredential with fields like username, password and so on - but its not.
    Could You help me ?
    Greetings
    Wojciech
    Here my coding :
    REPORT ztest.
    DATA text TYPE string.
    DATA : lr_proxy TYPE REF TO zsco_session_port. " its my session proxy object
    DATA : oref TYPE REF TO cx_root.
    TRY.
    CREATE OBJECT lr_proxy
    EXPORTING
    logical_port_name = 'LP1'.
    CATCH cx_ai_system_fault INTO oref.
    text = oref->get_text( ).
    ENDTRY.
    DATA get_server_info_in TYPE zsget_server_info_soap_in.
    DATA get_server_info_out TYPE zsget_server_info_soap_out.
    THIS IS WORKING WELL
    TRY.
    CALL METHOD lr_proxy->get_server_info
    EXPORTING
    input = get_server_info_in
    IMPORTING
    output = get_server_info_out.
    CATCH cx_ai_system_fault INTO oref..
    CATCH zscx_dswsexception INTO oref..
    CATCH cx_ai_application_fault INTO oref..
    ENDTRY.
    break-point.
    AND THIS IS ENDINNG WITH EXCEPTION
    TRY.
    CALL METHOD lr_proxy->login
    EXPORTING
    input = login_in
    IMPORTING
    output = login_out.
    CATCH cx_ai_system_fault INTO oref.
    text = oref->get_text( ).
    _ CATCH zscx_dswsexception INTO oref. this exeption is being called_
    text = oref->get_text( ).
    CATCH cx_ai_application_fault INTO oref.
    text = oref->get_text( ).
    ENDTRY.

    Hello,
    I struggle with exactly the same problem accessing the login webservice of the BOE server. Unfortunately the previous answer did not help me since I don't understand it
    Anyone able to enlighten me?
    Edit: Nevermind, I just found out by myself.
    Thanks,
    Sebastian
    Edited by: Sebastian Solzbacher on Nov 25, 2011 9:43 AM

  • RPC web service session beans and local interfaces

    I am wondering if it is possible to use EJB 2.0's local
    interface (vs remote interface) with 6.1's RPC web service
    session beans. Since WLS generates the SOAP servlet that
    invokes the RPC session bean and I do not find
    a way to some how tell SOAP servlet to use local interface to
    get the session bean's local home interface, I am not sure
    this can be done.
    Any comments would be appreciated.
    Thanks.
    Peter

    Ta. Thanks for the info.
    Any idea when Local I/F support is due?
    -Nick
    "Neal Yin" <[email protected]> wrote:
    >
    "Nick Minutello" <[email protected]>
    wrote
    in message news:3d4413a4$[email protected]..
    I was just about to post the very same question - but for WLS 7.0.0.1.
    There are essentially two questions:
    1) (from a functional perspective)
    Can I expose Local Interfaces as SOAP using the auto-generation(servicegen ant
    tasks)?Local Interfaces support is coming.
    2) (from a performance perspective)
    Does the generated SOAP implementation go via the (expensive) RemoteInterface
    (ie marshalling) - or is the RMI marshalling optimised out (by setting<enable-call-by-reference>true</>)?
    You can set this option by yourself on your EJB. Web service runtime
    doesn't
    do any magic in this area.
    Regards,
    Nick
    "Peter" <[email protected]> wrote:
    I am wondering if it is possible to use EJB 2.0's local
    interface (vs remote interface) with 6.1's RPC web service
    session beans. Since WLS generates the SOAP servlet that
    invokes the RPC session bean and I do not find
    a way to some how tell SOAP servlet to use local interface to
    get the session bean's local home interface, I am not sure
    this can be done.
    Any comments would be appreciated.
    Thanks.
    Peter

  • Web services sessions

    Can WebLogic 6.x maintain web services sessions between the client and the
    server?
    I need to implement a set of web services which share some session data.
    SOAP itself does allow for maintaining a session, so it is possible to have
    a SOAP header that will handle the passing of a session ID. Does WebLogic
    provide an API to implement this feature?
    Thanks in advance
    Regards

    We've spent a lot of time thinking about conversations between Web Services
    clients and WebLogic Servers where session data and ids are maintained. I
    don't think we can provide much detail yet on the newsgroups, but it's
    definitely an area that we're very much looking into.
    Currently, you would have to role your own service. If you just wanted to
    maintain a session id between client and server, the easiest (but most
    intrusive) thing to do would be to pass an extra 'id' parameter on every method
    call between client and server.
    -- Rob
    David Solis wrote:
    Almost all of the sample code for Web Services that we are seeing today is
    simple stateless method calls like "requesting a key or password",
    "validations", "calculations", etc.
    Has anybody experimented into the next logical step of a Stateful Web
    Service i.e a set of interaction request/responses for example a teller bank
    application or a shopping cart like example. Something on the lines of a
    Stateful Session Bean in EJB.
    It would be useful to all followers of this forum if either WebLogic
    Engineers or developers of web services throw some light on their
    experiences, suggestions.
    Regards
    "Rob Woollen" <rob@trebor_nelloow.moc> wrote in message
    news:3BFE9675.EE4AB56@trebor_nelloow.moc...
    WLS 6.1 does not currently provide a means to automatically propogate asession
    ID in the SOAP header. I'd be interested in hearing more about what youwould
    want for this feature. It's something that we are working on for a future
    release.
    -- Rob
    David Solis wrote:
    Can WebLogic 6.x maintain web services sessions between the client and
    the
    server?
    I need to implement a set of web services which share some session data.
    SOAP itself does allow for maintaining a session, so it is possible tohave
    a SOAP header that will handle the passing of a session ID. DoesWebLogic
    provide an API to implement this feature?
    Thanks in advance
    Regards
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Jlaunch process using High CPU, while uploading the files in XI system

    Hi,
    we are facing  jlaunch high cpu usage problems, while uploading the files of more than 25MB, in XI system. PIAFUSER is running on PRIV mode and huge java core dumps and heapdumps are  getting generated in server0 node
    error message->  - Out of memory situations running XI
    Exception thrown [Fri Sep 30 13:57:27,855]:Exception thrown by application running in JCo Server
    java.lang.Exception: java.lang.OutOfMemoryError
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:237)
         at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    first , we tested in Quality system, where,we are getting same problems as well.
    SAP Note 146289 - Parameter Recommendations for 64-Bit
    increased em/intial_size_MB  from 512MB to 2 GB and em/global_area_MB value from 96 to 256
    SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
    we added some jvm parameters in confitool
    -Djava.awt.headless=true
    -XX:+UseParNewGC
    -XX:+PrintGCTimeStamps
    Present  JVM values in XQ1 system..
    Xmx  value 3072
    xms  value 2048
    xmn  value 1000
    we have tested JCo RFC's  AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER , connection test was OK.
    We increased parameter com.sap.aii.ib.client.jnlp.j2se.maxheapsize from 512m to 800m
    Please advice me.. how to proceed..
    regards,
    balaram

    Hi Balaram,
    Kindly review below note, Hope it suits.
    716927 - Overview of AIX JVM for NetWeaver 2004 and 7.0 (2004s).
    Regards,
    Mani

  • Issue while uploading DME file generated from SAP using program RFFOAU_T

    Hi Friends,
    I ran f110 for our australian company code and able to generate DME file for making supplier payments successfully.
    Encountered problem while uploading this file into our Bank Portal, upload is unsuccessful, status is showing as  "Requires Repair u201C
    I called the bank customer service and they told me that ,
    We need to enter in our SAP the Bank ID ,
    We have to enter there : NAB
    Customer service told me that their bank is looking for Bank ID ,
    But canu2019t see it , so the payment is not going through.
    Can you please help me that  where in SAP Bank ID should be entered, so as to upload this file successfully.
    Thanks for your help.
    Regards
    Anil

    Hi Anil,
    While creating House Banks you can find Button called Data Medium Exchange. There is Bank Id field.
    Try it once
    reg
    vishnu

  • Error while uploading the file from Allpcation server in LSMW-7th step

    Hi Experts,
    what should be the specific CODE PAGE should be maintained while uploading the file from application server in LSMW-7th Step
    Thanks in advance,
    KSR

    Hi
    I mean that there is any seperate CODE PAGE which comes at the bottom of screen while uploading the file from the application server in 7th step.
    Is there any specific CODE PAGE to be maintained...
    Thanks in advance
    Oarsk

  • Error while uploading .xml file for Customer/Vendor List for Italy

    Hi All,
    We are facing problem while uploading the .xml file in DMEE transaction for the new Customer/Vendor List for Italy.
    We have followed the entire process given in the OSS Note(1090857).
    We have SAP 4.6c and followed the below steps:
    1. Created ID-FI-IT Development class
    2. Added domains
    3. Added Data elements
    4. Tried to upload the given .xml file and got any error saying ".xml file could not be interpreted".
    Also there is a .SAR file mentioned to upload if we receive any errors while uploading .xml file.
    Tried uploading the .SAR file also. STill we are recieving the same Error.
    Can any one of you help us out.
    Thanks in Advance.
    Ramesh

    Ok, we upload .SAR file in this way:
    1. unpack .SAR file with SAPCAR.EXE program. Yuo obtain 2 files
    R492445.P9C and K492445.P9C
    2. put K492445.P9C in directory \SAPMNT\TRANS\COFILES and put R492445.P9C in directory \SAPMNT\TRANS\DATA of your system (DEV, TST or PRD)
    3. Use Tx STMS. If You want create DMEE tree in DEV system, go to DEV import queue. Choose menu Extras | Other requests | Add. Insert P9CK492445 in Transp. request field.
    4. Import the request. This creates the DMEE tree. You don't need ti upload XML file after. You can see the DMEE tree created with Tx DMEE and inserting
    Tree type        UMS1            
    Format tree     IT_CUST_VEN_LIST
    5. after continue follow the note
    I hope this help you
    Roberto

  • Multiple languges used while uploading a file using java appn

    Hi everybody,
    i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other
    it was saving with different format other than chiness in the database, can any one help me out ... i need the exact language when i upload the files
    thank you very much

    Santhosh_25 wrote:
    actually i have asked the users for the languages... they told some languages like chinees,japanese,german,french,koriean,spanish,italian,dutch,russsian,englishThat isn't deterministic.
    Again, this is pointless unless it is deterministic.
    But lets say that each language group only uses a single character set.
    And each language group stores their files in a specific directory (or server).
    That allows you to deterministically identify the character set of the file.
    So you can then read each file by using a text reader from the java.io package with the correct encoding set.
    This works because it is determinstic.
    The following will NOT work.
    You have a directory with a bunch of files with completely random content in different languages. There is NO way to write a program that will correctly handle those.
    So, again, the first step before doing anything in java is figuring out how you will differentiate the different files.

  • Error message while upload excel file (with macro) to sap (iw28)

    While upload excel file to sap through iw28, i get error message (vb)
    u2022     i have to say that the excel file contain macro , with out the macro , work fine .
    u2022     The error display just in refresh command.
    the error message :
    Public Sub ALV_CUS_Exit()
    Dim objs As ChartObjects
    Dim obj As ChartObject
    Dim sheet As Worksheet
    Dim r As Range
    For Each sheet In Sheets
    Set objs = sheet.ChartObjects
    For Each obj In objs
    Set r = Sheets("RawData").UsedRange
    obj.Chart.SetSourceData Source:=r
    Next obj
    Next sheet
    End Sub

    hi,
    This is releated to the ABAP coding...There might be some ouput problem in the Abap list viewer...Pls check it with the ABAP consultant...
    Regards
    Priyanka.P

  • How to get full file path while uploading a file in flex Applications

    How to get full file path while uploading a file in flex applications.
    FileReference Object is giving file name and other details but not the actual path.
    Is there any workaround to to get the file path?.
    Thanks

    Why not ask in the Flex forum; it is more likely that someone over there knows.

  • (409) Conflict Error while uploading the file into Sharepoint library

    Getting the below error while uploading the file into Sharepoint library.
    (409) Conflict. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl,
    Stream stream, String etag, Boolean overwriteIfExists
    I have used the below code:
    ClientOM.File.SaveBinaryDirect(clientContext, "/Shared%20Documents/NewDocument.pptx", memoryStream, true);
    Thanks in advance.

    May be issue is with path.
    https://server/ should be there instead of
    subsite path(https://server/path/path)
    in the client context
    Check the below link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fbb38b10-1127-48a6-a65f-0301edd766c4/the-remote-server-returned-an-error-409-conflict-error-while-uploading-files-to-sharepoint?forum=sharepointdevelopmentlegacy

Maybe you are looking for