电信smgp3.0短信发送问题错误码46
SMGP3 smgp = new SMGP3();
int socketID = smgp.SMGP_Connect("135.0.69.90", 8891, "MSSFXPT", "20170711", (byte)0);
log.info("连接ISMG返回值:" + socketID);
if (socketID > 0) {
int test_ret = smgp.SMGPActiveTest(socketID);if (test_ret == 0) {
TSMGP_SUBMIT submit = new TSMGP_SUBMIT();
submit.cMsgType = 6;
submit.cNeedReport = 1;
submit.cPriority = 0;
submit.sServiceID = "PC2P";
submit.sFeeType = "00";
submit.sFeeCode = "0";
submit.sFixedFee = "0";
submit.sValidTime = "";
submit.sAtTime = "";
submit.sSrcTermID = "10659280030";
submit.sChargeTermID = "10659280030";
submit.sDestTermID = "17798502784";
submit.ucMsgFormat = 15; // 设置消息体编码格式 8:ucs2,15为gbk18030
submit.sMsgContent = "测试";
submit.sReserve = "";
submit.tsmgpTlv = tlv;
TSMGP_RESP resp = new TSMGP_RESP();
int submit_ret = smgp.SMGP_Submit(socketID, submit, resp);
System.out.println(submit_ret);
}
}
以上是 电信smgp3.0短信发送问题错误码46 的全部内容, 来源链接: utcz.com/p/944196.html