axisfault专题

axis2中关于AxisFault的说明

一般说来,不可避免的Web Service的服务中也会出现异常,举个简单的例子,一个服务接受一个SOAP请求消息,获取有效负载后,进行一个数据库更新操作,而在更新操作过程中发生了SQLException,这个时候就需要告诉客户端(调用Web Service)出现异常了,Axis2将异常封装成为一个AxisFault进行抛出。任何类型的异常Axis2都会对其进行封装,而不管该异常是运行时异常,还

Exception in thread main AxisFault

AxisFaultfaultCode: {http://xml.apache.org/axis/}HTTPfaultSubcode: faultString: (400)Bad RequestfaultActor: faultNode: faultDetail: {}:return code: 400{http://xml.apache.org/axis/}HttpErrorC