Send back acknowledgement from Axis2 handler without dropping original message

StackOverflow https://stackoverflow.com/questions/21282225

  •  01-10-2022
  •  | 
  •  

Вопрос

I have a scenario where an acknowledgement should be sent to the requestor that the message was successfully validated and accepted, however the original message should continue it's normal flow execution.

My module consists of a simple handler that performs some validation stuff and should send an acknowledgement to the requestor:

public class ValidationHandler extends AbstractHandler {
    //Validation logic goes here
    return InvocationResponse.CONTINUE;
}

How I could send the acknowledgement from the handler not breaking the initial message flow?

Thanks, Vladimir.

Это было полезно?

Решение

Use ;

AxisEngine.send(arg0);

in your handler to send a response back to client..

Here is a sample post, which talks about sending error message..You can refer that to send a custom response..

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top