Compare commits

..

1 Commits

  1. 20
      src/main/java/com/fr/data/WebServiceTableData.java

20
src/main/java/com/fr/data/WebServiceTableData.java

@ -10,17 +10,8 @@ import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.List;
/**
* WebService程序数据集
*
* @author Roger
* @since 11.0
* Created on 2024/1/8
*/
public class WebServiceTableData extends SimpleTableData {
private static final int COLUMN_COUNT = 10;
/**
* 初始化列名数组
*
@ -29,8 +20,8 @@ public class WebServiceTableData extends SimpleTableData {
*/
@Override
public String[] initColumnNames() {
String[] columnNames = new String[COLUMN_COUNT];
for (int i = 0; i < COLUMN_COUNT; i++) {
String[] columnNames = new String[10];
for (int i = 0; i < 10; i++) {
columnNames[i] = "column#" + i;
}
return columnNames;
@ -44,7 +35,7 @@ public class WebServiceTableData extends SimpleTableData {
@Override
public List<Object[]> loadData() {
String tableName = ((ParameterProvider) (parameters.get().toArray())[0]).getValue().toString();
FineLoggerFactory.getLogger().info("Query SQL of ParamTableDataDemo: {}", tableName);
FineLoggerFactory.getLogger().info("Query SQL of ParamTableDataDemo: \n" + tableName);
// 保存得到的结果集
ArrayList<Object[]> valueList = new ArrayList();
@ -77,11 +68,6 @@ public class WebServiceTableData extends SimpleTableData {
return valueList;
}
/**
* 调用 Web 服务获取数据
*
* @return
*/
public String[][] createData() {
try {
String endpoint = "http://localhost:8080/axis/TestWS2TDClient.jws";

Loading…
Cancel
Save