cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member184385
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hello,

is this problem solved?

Thanks,

Felix