cancel
Showing results for 
Search instead for 
Did you mean: 

how can i rollback the tasks done by webservice?

Former Member
0 Kudos

Hi,

I am implementing a webservice.

Which posts data in a DB as well as SAP.

posting data into DB has to be implemented by calling ejb.

posting data into SAP has to be implemented by calling XI webservice.

For this i am assuming like this way...............

Call the ejb to post data into DB.

Call the XI webservice to post data into SAP.

If XI webservice is executed properly then commit the transaction to post data into DB.

But there may be another possibility ...........

While commiting the transaction if any exception comes ,

How can i rollback the XI webservice?Is it possible to rollback the webservice

after it is executed?

Can any one guide me.

Regards

Madhu

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I presume that when you say XI web service, you are referring to a sender SOAP - XI - SAP scenario. if that is correct, there is no way you could control the transaction commit externally. From your code giving a call to the web service, you can just set the data and execute the web service call, there is no way of controlling the commit behaviour of the web service from the client code .

Former Member
0 Kudos

Hi,

Thanks Amol.

Your assumption is right.

Regards

Madhu

former_member182294
Active Contributor
0 Kudos

The other solution could be the XI WebSerice should handle multiple targets which I mean, instead of two separate calls to DB and XI you can have single call to XI WebService which will take care of SAP transaction as well as DB transaction with JDBC Adapter. I am not a XI expert but as per my knowledge you can achieve this through BPM.

Regards

Abhilash

Former Member
0 Kudos

Hi Abhilash,

As per the requirement i cann't change the XI WebService. It is already implemented and called by some other interfaces.

Thanks

Madhu