Axis2是Web Services / SOAP / WSDL引擎,是广泛使用的Apache Axis SOAP堆栈的后继者。
Apache Axis2 Web服务引擎有两种实现-Apache Axis2 / Java和Apache Axis2 / C,您将在此处找到有关Apache Axis2 / Java的所有信息。
onMessage(当接收到消息时执行的方法)
void onMessage(MessageContextmsgContext)
This is called when we receive a message.
Parameters:(参数)
msgContext - the (response) MessageContext 响应的context,包含所以返回的信息
onFault
void onFault(MessageContextmsgContext)
This gets called when a fault message is received.(当返回错误消息时,执行的方法)
Parameters:
msgContext - the MessageContext containing the fault.
onError
void onError(Exceptione)
This gets called ONLY when an internal processing exception occurs.(当axis2调用webservice方法报错时执行的方法,)
Parameters:
e - the Exception which caused the problem
onComplete
void onComplete()
This is called at the end of the MEP no matter what happens, quite like a finally block.
(不管发生什么,这都是在MEP的末尾调用的,类似于finally块。)