the following figure shows the webservice interface tested in soapui. The returned characters are not garbled.
cxf webservice "" ""
the following is the code for the cxf call
JaxWsDynamicClientFactory var2 = JaxWsDynamicClientFactory.newInstance();
Client var3 = var2.createClient(this.data.getDataUrl());
HTTPConduit var4 = (HTTPConduit)var3.getConduit();
HTTPClientPolicy var5 = new HTTPClientPolicy();
var5.setConnectionTimeout(3000L);
var5.setAllowChunking(false);
var5.setReceiveTimeout(600000L);
var4.setClient(var5);
String var6;
Object[] var7;
Object[] var8;
if(this.data.getDataParam1().equals("$method$")) {
System.out.println("method:" + this.data.getDataParam2());
var6 = this.data.getDataParam2();
var7 = new Object[0];
var8 = var3.invoke(var6, var7);
var1 = var8[0].toString();
System.out.println(var1);
} else {
System.out.println("BeginParam:" + this.beginParam);
System.out.println("EndParam:" + this.endParam);
var6 = "getDataXml";
var7 = new Object[]{this.data.getDataParam1(), this.data.getDataParam2(), this.beginParam, this.endParam};
var8 = var3.invoke(var6, var7);
var1 = var8[0].toString();
}
The result returned by will have some garbled code either in the console output or in writing to the file.
ask a big god to help us find out what went wrong. Thank you.