Skip to Content
avatar image
Former Member

How to call a stateful web service with its commit in an EJB or WebDynpro?

Hi,

I have created a web service from the BAPI Salesorder_Create_From_Dat2 and the webservice from BAPI_Transaction_Commit. How can I call these two services in one session in an EJB or in WebDynpro? I am not sure what one session means. Is this possible at all? If yes how can I do this? It is important that it is done with web services.

Thank you

Julia

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 26, 2006 at 04:26 PM

    Hi Julia,

    the web service impl. at WAS/ABAP is translating your WS sales order and commit method calls to equivalent BAPI calls. For the commit to be successful, the same ABAP session must be used, which leads to the requirement, that the caller of this two WS methods, your WebDynpro, has to manage a session.

    I don't (from the top of may head), how to maintain a session, but I'm sure, the generated stubs for your two WSes inherit some API methods from the stub base class to accomplish this.

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 13, 2007 at 01:23 PM

    HI Julia,

    Did you ever solve this problem? I am faced with the same issue myself and would very much like to know the solution.

    Thanks

    Add comment
    10|10000 characters needed characters exceeded