Axis知识集锦
Axis 动态WebService客户端样例
1 2 3 4 5 6 7 8 9 |
org.apache.axis.client.Service service = new Service(); Call call = (Call) service.createCall(); call.setTargetEndpointAddress( "http://192.168.1.184:9090/services/flowService" ); call.setOperationName( new QName( "http://flow.gmem.cc/", "request" ) ); call.addParameter( "userName", XMLType.XSD_STRING, ParameterMode.IN ); call.addParameter( "password", XMLType.XSD_STRING, ParameterMode.IN ); call.addParameter( "xml", XMLType.XSD_STRING, ParameterMode.IN ); call.setReturnType( XMLType.XSD_STRING ); Object result = call.invoke( new Object[] { "USER", "111111", xml } ); |
Axis1.4 客户端调用报错:Fault occurred while processing
报错信息:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: Fault occurred while processing.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Fault occurred while processing.
报错原因:可能由于服务端代码抛出未捕获的异常导致
← Java知识集锦
Leave a Reply