use of org.apache.servicecomb.demo.mapnull.ParseResponse in project java-chassis by ServiceComb.
the class CodeFirstPojo method parse.
@Override
public ParseResponse parse(ParseRequest request) {
ParseResponse r = new ParseResponse();
r.setResultCode("CU1I0000");
r.setResultInfo("报文处理成功!报文解析成功!");
r.setMsgType("cncc.111.001.01");
Map<String, String> h = new HashMap<>();
h.put("C11", "20200101");
h.put("F41", "3");
h.put("F40", "cncc.111.001.01");
h.put("E24", "HVPA5C30177808463743");
h.put("E35", "HVPA5C30177808463743");
h.put("A29", "{N:, K20=}");
h.put("F38", "HVPS");
h.put("K13", "01");
h.put("F39", "SAPS");
h.put("K14", "CMT");
h.put("K16", "");
h.put("C92", "102633");
r.setMsgHeader(h);
Map<String, Object> b = new HashMap<>();
b.put("E50", "hvps.141.001.01");
b.put("A00", "402451000010");
b.put("A01", "105100000017");
b.put("F32", "NORM");
b.put("E57", "19218385");
b.put("D14", "200000.00");
b.put("C14", "20200101");
b.put("F25", "02711");
b.put("A70", "908100000002");
b.put("C92", "20200101");
b.put("F2H", "G105");
r.setMsgBody(b);
return r;
}
use of org.apache.servicecomb.demo.mapnull.ParseResponse in project java-chassis by ServiceComb.
the class CodeFirstPojoClient method remoteCodeFirstPojo_testParseResponse.
private void remoteCodeFirstPojo_testParseResponse(CodeFirstPojoIntf codeFirst) {
ParseResponse r = codeFirst.parse(new ParseRequest());
TestMgr.check("", r.getMsgHeader().get("K16"));
TestMgr.check("CMT", r.getMsgHeader().get("K14"));
}
Aggregations