cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction (Commit/Rollback) support with WAS/SOAP

Former Member
0 Kudos

We currently use the SAP Business Connector to issue a sequence of RFC calls wrapped in a transaction (using the Session capabilities of SAP BC). Is there comparable functionality when issuing a sequence of RFC-over-SOAP calls with WAS?

Our goal is a "no code" approach (no JCO, no .NET connector), which we have successfully achieved with SAP Business Connector and would like to achieve with WAS.

Please advise as to any thoughts/suggestions.

- Rick Bullotta

CTO

Lighthammer Software (http://www.lighthammer.com)

Accepted Solutions (0)

Answers (1)

Answers (1)

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

Basically you had to write an EJB that does this and then make a webservice out of it.

This should be possible.

Former Member
0 Kudos

Actually, there appears to be a way to do this using Cookies and a URL parameter called session_mode, but this is not documented anywhere. I'm looking for some specific documentation on how to use this functionality.

Benny
Product and Topic Expert
Product and Topic Expert
0 Kudos

This may be possible with BC, but not with Web AS.

You have to go another way to do it there.

Former Member
0 Kudos

Any comments on the following sample code from the 2002 TechEd session on WAS & RFC's? It seems to indicate that there is stateful session capability in WAS using a combination of cookies and the session_mode URI parameter. Has this functionality been removed? If so, it severely cripples/limits the capabilities of the SOAP runtime for WAS.

- Rick Bullotta

CTO

Lighthammer Software (http://www.lighthammer.com)

===================================

"The HTTP communication for our web service test works stateless so far. The backend doesn’t keep the 1 you sent with your first call. To change this behaviour you have to keep the session (state) on both sides of the communication. We will use HTTP cookies for this. Modify your code as follows:

int result;

String Url = "http://iwdf9379:1081/sap/bc/soap/rfc?sap-client=801";

String beginSessionUrl = "http://iwdf9379:1081/sap/bc/soap/rfc?sap-client=801&session_mode=1";

String endSessionUrl = "http://iwdf9379:1081/sap/bc/soap/rfc?sap-client=801&session_mode=2";

===================================

Former Member
0 Kudos

Hi Rick,

i'm not quite sure that this is what you are looking for, but please check yourself: http://help.sap.com/saphelp_nw04/helpdata/en/46/8388890f07455fa4b9fc45f22ae00a/content.htm

Regards

Stefan