| | |
| | | System.out.println("BCS101 API 简化版本调用异常: " + e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | System.out.println("\n=== 测试BCS101 API服务(X5协议标准版本) ==="); |
| | | try { |
| | | // 调用X5协议标准版本 |
| | | String x5StandardResponse = bcs101ApiService.getBCS101DataX5Standard(request); |
| | | System.out.println("BCS101 API X5Standard Response: " + x5StandardResponse); |
| | | } catch (Exception e) { |
| | | System.out.println("BCS101 API X5标准版本调用异常: " + e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | System.out.println("\n=== 测试BCS101 API服务(X5协议变体版本) ==="); |
| | | try { |
| | | // 调用X5协议变体版本 |
| | | String x5VariantResponse = bcs101ApiService.getBCS101DataX5Variant(request); |
| | | System.out.println("BCS101 API X5Variant Response: " + x5VariantResponse); |
| | | } catch (Exception e) { |
| | | System.out.println("BCS101 API X5变体版本调用异常: " + e.getMessage()); |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | } |