Forum Discussion
Thanks Anders.
Sorry for the delay. We are using JAX-WS WebService with Atomic Transaction (SUPPORTS type) which in turn uses User Transaction on it as like below,
UserTransaction tx = null;
try {
ctx = new InitialContext();
tx = (UserTransaction)ctx.lookup("javax.transaction.UserTransaction");
The WebService has been deployed successfully on WebLogic 12c server. Now, i am invoking this WebService through SOAP UI tool which in turn calls the WebService correctly.
The issue happens only when something fails in middle of business logic. The SOAP UI returns the error that is returned from business logic but the business logic process which happened before the failure gets committed. (PARTIAL COMMIT).
So, I need to find the way to rollback the changes through SOAP UI when the API errors.
Still not sure if I fully understand the problem.
SoapUI acts as a client to your API. It is never the clients responsibility to rollback transactions on the server if something fails in the business logic.
I advice you to look at how you handle transactions in the web service, as something seems to be wrong there.
Regards,
Anders
Ready! API developer
Related Content
- 5 years agopaulvinders
- 2 months agoStoplight
- 5 years agopoinc
- 2 years agoEgg