Stateful Web Services: how to free session after commit?

Hello,
We're developing an interface via web services to DM5.
The web services are stateful, so we can handle BAPI_TRANSACTION_COMMIT/ROLLBACK.
Apparently the web service session is not freed after the call to BAPI_TRANSACTION_COMMIT/ROLLBACK. This is visible in a test that sends 100 operations very quicly, the app server stops responding after the first 90 calls (actually the server starts responding a void text/xml). After a while (I guess after some http sessions are available after timeout), the server starts responding again.
Our assumption was that commiting the transaction would free the corresponding session, but it looks like this is not the case...
Do you have any clues on that? Timeout is the only way to free a web service session?
Thank you
Regards

Hi,
Please refer the below article and browse code.
http://code.msdn.microsoft.com/Remote-Authentication-in-b7b6f43c
Thanks,
Srikanth

Similar Messages

  • Consuming a stateful web service

    We created and deployed a stateful web service(mail service) in J2EE. It is tested working fine for J2EE consumer. Now we need to create a client from SAP WebAs (abap side). We generated the proxy with logical port, having set those "State Management" and "Session Oriented-communication" features, which I believe supposed to be stateful.
    But the program crashed at the second time I call any method in the client proxy, for example, after "CALL METHOD mail_proxy->open_mail_session" to open a mail session, the "CALL METHOD mail_proxy->open_mail_store" throws an exception: "ICF Error when receiving the response: HTTP COMMUNICATION FAILURE".  It doesn’t matter which method  I used, it crashed on the second one any way. If I move the second method to the first call, the method will work fine but still crash on the 2nd called method.
    I need more information about how to make the client proxy and logical port working with a stateful web service.
    I will appreciate any hint, reference or suggestion!

    Hi,
    I am also creating a stateful web service for a standalone java client..
    Do we need to set the SESSION_MAINTAIN_PROPERTY on the client stub.It gives me a remote exception once I use this.Dont know how this web service keeps track of session..Pls advice
    Shashank

  • Stateful web service implementation in Flex 2

    Hello Gurus,
    We are trying to invoke a web service located on a remote
    server using MXML to create a purchase order. One of the
    requirements is that we pass a cookie from our end to this web
    service for authentication and session management purposes. Can
    anyone throw some pointers on passing cookie information to
    webservices from MXML or ActionScript?
    A little bit of research resulted in the following link:
    http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/wwhelp/wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Parts&file=rpc_26.html
    An extract from the above document states the following:
    "Stateful web services
    Flex uses Java server sessions to maintain the state of web
    service endpoints that use cookies to store session information.
    But unfortunately there are no examples on how to pass the
    cookie information itself. Any pointers are appreciated . Thanks
    much!

    This issue caused me much confusion and delay, so I hope that what I am about to say is correct.  When Flex calls a web service that requires a stateful connection, the web service "cookie" is stored in the browser.  Flash automatically attempts to access this cookie value, and returns it to the web service when additional web service operations are called.  The cookie value will be placed in the "Request Headers".
    A couple issues that gave me fits:
    1.  Safari browser on Mac had default "/preferences/Privacy/Block cookies" set to "From third parties and advertisers".  This was preventing the cookie from being sent.  I had to change this setting to "never".
    2.  I work inside the Flash API.  Testing my movie never passed the cookie value back, and I have not figured out how to do this when compiling for Flash Player.
         - NOTE: I am able to test compiling as an Adobe Air App just fine.  I did this to get my web service calls/parsing of returned info correct first.  Cookie issue and Cross Domain issues are not issues in Adobe Air, so I find this is a good place to get the web service working.  After working compiling as Adobe Air, switch to compile for Flash Player to fine tuning other issues.
    3. Cross Domain issues.  Lots of posts on this.  Pay close attention.
    Thanks!

  • ESB and Stateful web services

    Folks,
    I’ve got two web services that are called in succession. The first web service performs a search and caches the results on the server, returning only some basic information about how many results were found (in the payload) and a session id (as an attribute in a HTTP header). The second service is called afterwards, passing some page request information (in payload) and the session id (in the HTTP header). The session id is used to find the appropriate search results and return them lazily (based the given page request information).
    The web service requests are done through ESB and OWSM. My problem, however, is that according to the ESB developer’s guide (http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28211.pdf , page 5-29, ‘Limitations of ESB Header Support’) ESB is not capable of setting header attributes (at least not SOAP header attributes).
    Is it possible to use stateful web services with the ESB? If so, how is the SessionID handled on the ESB and how is it correlated with the clients of the ESB who are getting the results back from this stateful web service?
    Thanks in advance,
    Joseph

    Dave,
    We have invoked the two services mentioned above in four different manners using Java code.
    1. We are invoking the services through ESB with no success. The HTTP header (set-cookie) never makes it back.
    2. We are invoking the services through Web Services Manager (the services are registered directly with OWSM) with no success. The HTTP header (set-cookie) never makes it back.
    3. We are invoking the services through Web Services Manager (with ESB providing a wrapper for the services) with no success. The HTTP header never (set-cookie) makes it back.
    4. Invoking the services directly (no OWSM, no ESB). This method is successful. HTTP headers are being exchanged without incident.
    We are using Ethereal to check out the traffic going back and forth so we can see the SOAP headers getting propagated back and forth as you had mentioned. The problem is that the HTTP headers (as mentioned in my first posting) containing the session information are getting dropped when using ESB or Web Services Manager.
    Any suggestions?
    Thanks,
    Joseph

  • Need help calling stateful web service from BPEL 10.1.3.1

    I found the tutorial located at http://www.oracle.com/technology/products/ias/bpel/htdocs/callingstatefulwsfrombpel.html which talks about how to call a stateful web service, it is also mentioned on Clemens Utschig's SOA blog.
    The problem is that the code for the handlers will not compile as given under 10.1.3.1 -- it seems that the method signature for the invoke method has changed in the interface com.collaxa.cube.ws.HeaderHandler
    Has anyone gotten this to work in 10.1.3.1 or can anyone give me a tip on how to call a stateful web service in a different manner from BPEL?
    Thanks!

    Hi,
    'm trying to call a username/password secured service,
    with
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">username</property>
    <property name="basicPassword">password</property>
    But getting the following exception,
    FAIL :: Cause : :exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Bad Set-Cookie header: JSESSIONID_twos=Lf1VTn7Q5KG5PhtJlGjTTM0nhhJ5FLyR51zZJLLBGfVs04VY8fmv!-728969536; domain=wosdev; path=/; secure=true, WLAUTHCOOKIE_JSESSIONID_btwosfportal=ZHfuVwF5kudqtHEoR6Ap; path=/; secure Expected ';' or ',' at position 131:
    Kindly help!
    Thanks,
    ChandraMouli
    Edited by: user13110451 on Sep 8, 2011 5:52 AM

  • SuperWebservice supporting stateful Web Service

    Acelet (http://www.acelet.com) has released a new version of Super with SuperWebservice supporting stateful Web service and SuperLogging combining traditional logging and LimpidLog. LimpidLog is a revolutionary logging: there is no need to hard-code logging statement. LimpidLog is an open source program.

    When building the service, there is an option to deploy a stateful service: check the stateful checkbox, in the step 2 of the wizard - Methods definition.
    On the client side, you will have to enable HTTP based cookie, so that the client remember the JSESSION cookie.
    Hope this helps,
    Eric

  • Closing stateful web service connections

    Hi All,
    I've created a staeful web service(in ABAP) and we are doing load tests for 50-100 concurrent users on this webservice.
    After some time we are getting invalid response time exceptions while calling the web service.
    In transaction SM04 , we observed all the (HTTP connections)stateful connections are opened and after reaching  1000 users its anot allowing further webservice calls.
    How can we close the staeful web service connections  . I am cosuming this web service in java.
    I've created  standalone proxy .
    Please let me know.
    Thanks,Anilkumar

    hi,
    this is a very interesting question. Since I didn't know how the WAS ABAP actually supports stateful webservices at all I did research it a little. It seems that there is no standard for stateful webservices in existence (yet?). So there seem to be two mechanisms actually used to maintain session (in the world not SAP), one by (mis)using WS-Adressing and the other one by simply using HTTP sessions (cookies). Using WS-Addressing would be reflected in the WSDL which isn't the case (Rel. 7.0). So this must be achieved by HTTP session cookies.
    In HTTP session management there is, AFAIK, no mechanism to allow the  client to explicitly close a server session. Usually the client destroys it's session and the corresponding server session simply times out because it is not called for a certain amount of time.
    Second, IMHO, such a session is not much good for (apart from getting rid of successive authentication) as long as the application cannot access the session information. I am not aware how a function module underlying a webservice can access this session information.
    In conclusion, I would be very interested if you could share a bit on how youse stateful connections and what you can achieve with it.
    regards, anton

  • Test web service proxy using EJB session bean client...

    Hello!
    I am following this blog /people/abdelmorhit.elrhazi/blog/2009/10/30/how-to-consume-an-inbound-backend-web-service-in-nwdsjboss-environment to create a EJB session bean client to access the web service proxy...
    The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
    How to find out the URL for the wsdl ?
    Thanks

    > The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
    "To deploy your web service proxy and session bean, right click on your JBoss server in the Servers view, and click on Add Remove Projects, add you ear file and click finish."
    You need a JBoss server.

  • Consuming stateful web service via ABAP proxy

    Hi all,
    I´ve got the following scenario. I´ve a ABAP proxy generated based on a WSDL file. The provider is a WebService provided by a tomcat server. (no PI etc. as middleware). The problem i´ve now is that the webservice is stateful so I need a stateful communication between my ABAP report (client) and the Web Service.
    I´ve already found the possibiliy to switch on the feature "Session-Oriented Communication" on "Preconfiguration Tab" of the ABAP Proxy Screen. But unfortunately it´s not working.
    Anybody knows whether general system settings has to be changed for this. Or anybody has other tips.
    I´m currentliy working on the SAP Discovery System v3 which is a Netweaver 7.0.
    Many thanks in advance for your answers,
    Andy

    Marcelo  Almeida wrote:
    > You can use Logial port for it in LPCONFIG ( Transaction). See this examplo Below:
    >
    > TRY.
    >
    > CREATE OBJECT my_proxy
    > EXPORTING
    > logical_port_name = 'LP01'.
    > CATCH cx_ai_system_fault.
    > ENDTRY.
    >
    > TRY.
    > input-airline_id = p_carrid.
    > input-connection_id = p_connid.
    > input-flight_date = p_fldate.
    >
    > CALL METHOD my_proxy->flight_get_detail
    > EXPORTING
    > input = input
    > IMPORTING
    > output = output.
    > CATCH cx_ai_system_fault.
    > CATCH cx_ai_application_fault.
    > ENTRY.
    >
    > Its necessary create a connection in SM59 (type H) and setting in the call parameters logical port (LPCONFIG).
    Hi,
    thanks for your answer. It´s working!
    Cheers,
    Andy

  • Web Service Not Appearing in navigator after deployment

    have written some EJBs (Entity- and Session-Beans), created a WebService from the Session-Bean. After having deployed the WebService, which finished without error, the Web Service cannot be accessed by Web Service Navigator, nor by Visual Admin or Web Interface.
    Environment configuration:
    - SAP Web AS 6.40 SP9
    Can anybody help me, please ...

    Hi,
    Did you solve the issue ? I am facing the same issue.
    Can you please let me know whats missing
    Regards
    KG

  • Web Services: How to get the username token?

    Hello everybody,
    I wrote an EJB, Exposed it as a web service.
    I'm using encryption+username as the inbound policy.
    The client is adding a username token to the message.
    I understood that the userpassword are checked automatically and I don't need to implement that myself but I need the userpassword from this token for another reason.
    How can I get this information in the EJB's code?
    Thanks, Adi.

    You can get the user from Session Bean's context.
    myContext.getCallerPrincipal();
    I think you cannot get the password. That way, it would be easy to disguise your WS as another one you could want to crack.
    Regards.

  • Attn Grant Ronald : Web Services How To : Not valid anymore

    Hi Grant
    The how to integrate web services with Forms uses Jdeveloper 10g to create a stub for the web services which can be called in from Forms 10g. The step by step instructions are based on version 9i. Jdeveloper 10g does not have the same deployment options as 9i version. The instructions have to change.
    Rgds
    Arvind Balaraman

    Web Services are not supported on apex.oracle.com at this time. This is a fairly recent change - just after our upgrade a few weeks back.
    I just added a note to our ShowCase app that demonstrated this a few days ago because our Web Services Showcase pages no longer work (but you can download the packaged version of the application and install it locally to see it work).
    -- Sharon

  • Web Service, HOW?

    I have 5 things:
    - A set of XML schemas that are used for messages that fly around on our JMS servers
    - An XMLBeans generated API for dealing with said schemas
    - A set of MDBs that use schemas and generated API to understand JMS message bodies
    - A stateless session bean with some biz logic that also uses the generated APIs.
    - A golden-WSDL that closely resembles the stateless session bean interface and uses <xsd:import> elements to reference the existing schemas. (An implementation that just called that SSB would be great.)
    Now I'd like to expose that SSB as a SOAP over HTTP web service - preferably using the already generated XML Bean APIs. I'd like to use the JAX-RPC SOAP processing, but plug-in our existing Java <-> XML marshaling code.
    The BEA manual "Programing Web Services for WebLogic Server" has only made it worse as it leaves the impression that the ONLY way to do WLS web services is via JWS/JSR-181 annotations. But it appears that I really want is to expose an EJB as endpoint as described by JSR 109/921.
    I'd be happy if I could figure out how to get the service endpoint to just pass the soap body as raw XML. Then I could call our existing xml to java marshaling code myself.
    We're running on WLS 9.2MP2 on top of Java5. We need the web-service to start a transaction, to bundle into an ear and be deployable to cluster.
    Any suggestions or pointers?
    Thanks,
    - Chris
    Edited by chuston at 10/11/2007 8:58 AM
    Edited by chuston at 10/11/2007 9:00 AM

    Can't you just use the SAAJ API that way you'll have controll as to how your SOAP message is constructed?
    gtata

  • PL/SQL web service - how to use XML schema to define inputs/outputs?

    Hello,
    let us say I want to publish a PL/SQL web service. The package spec that I want to expose is:
    CREATE OR REPLACE PACKAGE myWebService AS
      FUNCTION loadResults(
        username   IN VARCHAR2,
        password   IN VARCHAR2,
        resultData IN XMLType)
      RETURN XMLType;
    END;When I use JDeveloper's wizard to publish my PL/SQL web service, the resulting WSDL contains this:
    <schema
        xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:tns="http://uk/co/weatherbys/aapws/AAPWS.wsdl/types/"
        targetNamespace="http://uk/co/weatherbys/aapws/AAPWS.wsdl/types/"
        elementFormDefault="qualified">
        <element name="loadresultsElement">
            <complexType>
                <sequence>
                    <element name="username" type="string" nillable="true"/>
                    <element name="password" type="string" nillable="true"/>
                    <element name="resultdata" nillable="true">
                        <complexType>
                           <sequence>
                                <any/>
                             </sequence>
                        </complexType>
                    </element>
                </sequence>
            </complexType>
        </element>
        <element name="loadresultsResponseElement">
            <complexType>
                <sequence>
                    <element name="result" nillable="true">
                       <complexType>
                            <sequence>
                                <any/>
                            </sequence>
                        </complexType>
                    </element>
                </sequence>
            </complexType>
        </element>
    </schema>It is specifying that anything at all can be passed in and out from the two XMLType arguments, which is fair enough: it has no way of knowing what I am expecting and what I shall return.
    My question is, how do I tell JDeveloper that actually I want either or both of those XMLTypes to conform to a particular XML schema?

    You cannot format the date as a string, unless you do the conversion on the PL-SQL side, before you use it in your WebService mapping. It should be handled as a string.
    The only way to convert the XML from SOAP, using this encoding, into literal XML is to apply XSLT to the payload. Not sure why you would like to do this, as the payload should be consumed by another SOAP-awared stack.
    Hope this helps,
    Eric

  • Nokia E72 - How much free mem after update to 91.0...

    Hello!
    Obviously there are not too many still using the Nokia E72 around here. But of those having updated to firmware version 91.003, could anyone please tell me how much free mem there is after startup, i.e. with PhoNetInfo or a similar application? Would be much appreciated. With 73.001 I have about 40 to 41MB with unused apps deinstalled or turned off.
    Thanks!

    Changelog : improvements in memory (RAM) consumption
    My opinion : nothing has been changed [less than 45 mb at startup]
    Nokia E72 V091.003

Maybe you are looking for

  • Can we show / hide the minor grid in a graph programatically?

    I know how to do it statically and I know how to show / hide the major grid programatically. I am using labview 6.0. thanks

  • Query taking much time Orace 9i

    Hi, **How can we tune the sql query in oracle 9i.** The select query taking more than 1 and 30 min to throw the result. Due to this, We have created materialsed view on the select query and also we submitted a job to get Materilazed view refreshed da

  • New Skype for Business PSTN services announced

    Announcing preview of new Skype for Business services in Office 365Skype Meeting Broadcast, available to eligible Office 365 customers worldwide, enables broadcast of a Skype for Business meeting on the Internet to up to 10,000 people, who can attend

  • RAW thoughts

    iPhoto still needs better support for raw files. I can get it to import .nef files from a Nikon D70, and also the same files converted to .dng by the Adobe utility. But .dng files made by a Leica M8 - no way. If I use Adobe DNG Converter on these fil

  • Database With Video

    How Can I Make Database To Video And Emage? My Project Is Takeing pictures And Video of the body scan To The patients And Make Record To Evry patient In My Database Plzzzz Help Me To Do That 1- How Can I Take This pictures And Video From The body sca