Search code examples
apache-axis

MessageID, servicename are null in axis2


I have written an axis2 handler , which captures messgaeID, service name, operation name details.. I kept the handler at InFlow/transport phase. But when i invoke the service(which is hosted in axis2) i get all these details are "null"

Anyone know the reason?


Solution

  • The reason that you are getting all values as null in your handler is, at that moment message has not been dispatched to relevant service and operation. You will see set of dispatches are there in Inflow to do the dispatching. If you put your handler after these dispatchers then you will get the service name and operations name relevant to that message.