朋友,帮帮忙,faultString: 服务器未能识别 HTTP 头 SOAPAction 的值:
String endPoint="http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx";
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endPoint));
call.setOperation("getRegionCountry");
call.setUseSOAPAction(true);
call.setSOAPActionURI("");
call.setOperationName(new QName("http://webservice.webxml.com.cn/WebServices/WeatherWS.asmx","getRegionCountry"));
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
String str=(String)call.invoke( new Object[]{});
System.out.println(str);