Axis2 在调用WebService 当 () 方法的入参为 “” 或不设置时,Axis2 默认会在HTTP 头部分的 SOAPAction 中 "urn:anonOutInOp“。在一些对SOAPaction没有要求的WebService服务中没有问题,但遇到对SOAPaction要求严格的WebService中就是一个严重的问题了。
解决方法:
import .;
if (SOAPaction == null || "".endsWith(SOAPaction)) {
Map<String, Object> properties = new HashMap<String, Object>();
(.DISABLE_SOAP_ACTION, true);
(properties);
}
(SOAPaction);