环境:客户端代码为axis2 1.4.1自动生成的,服务端为cxf2.2.5的(这个我无权修改)
调用出差:
org.apache.axis2.AxisFault: First Element must contain the local name, Envelope
, but found definitions
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage(Transport
Utils.java:90)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:353)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
163)
at highsoft.yxgl.pki.authservice.pkiclient.PKIServiceServiceStub.TASS_Ve
rifySignByAD(PKIServiceServiceStub.java:567)
调用代码参考:
public class PKIService {
public static PKIServiceServiceStub stub = null;
public PKIService(String endpoint) throws AxisFault {
stub = new PKIServiceServiceStub(endpoint);
}
public PKIService() throws AxisFault {
stub = new PKIServiceServiceStub();
}
public ADBBean getTestObject(Class type) throws Exception{
return (ADBBean) type.newInstance();
}
public String TASS_VerifySignByAD(String ad, String data, int dataMode, String signedData) throws AxisFault,ClassNotFoundException,Exception {
TASS_VerifySignByADE tassVerifySignByADE = (TASS_VerifySignByADE)getTestObject(TASS_VerifySignByADE.class);
TASS_VerifySignByAD tassVerifySignByAD = new TASS_VerifySignByAD();
tassVerifySignByAD.setArg0(ad);
tassVerifySignByAD.setArg1(data);
tassVerifySignByAD.setArg2(dataMode);
tassVerifySignByAD.setArg3(signedData);
tassVerifySignByADE.setTASS_VerifySignByAD(tassVerifySignByAD);
return stub.TASS_VerifySignByAD(tassVerifySignByADE).getTASS_VerifySignByADResponse().get_return();
}
}
------------------------------------------------------------------------------------------------------------------
问题补充:
7454103 写道
服务端响应给客户端的消息有问题,客户端绑定节点的时候异常了 ???
服务端是人家部署好的,我们没权利要求他们修改,他们说没问题。我想能不能加什么选项后调用成功。
------------------------------------------------------------------------------------------------------------------
问题补充:
服务端是做的负载均衡,对外地址为80了,实际为8080