日期:2014-05-17  浏览次数:20725 次

电信短信业务SP下发成功但是没收到回执,求高手顶!!!!!
最好能说出步骤,还有短信的流程是怎样的,新手什么也看不懂~!按照规范填写了还是不行!
代码:
URL url = new URL("http://118.85.200.55:9081/SendSmsService");
SendSmsServiceLocator sl = new SendSmsServiceLocator();
SendSms sendSMSClient = sl.getSendSms(url);
String timeStamp = set.formatToString("MMddHHmmss");
String spPassword = md5.compile(spId + password + timeStamp).toUpperCase();
String productId = "12345678913";
String SAN = getString(string);
String transactionId = set.formatToString("yyyyMMddHHmmss"); 
String transEnd = "0"; 
String linkId = linkid;
String OA = "tel:+86" + address; 
String FA = "tel:+86" + address; // 付费地址,格式同OA,可选
String multicastMessaging = "false"; // 是否群发,true:群发,false:非群发,缺省为false
// MMS接收端手机号码
URI[] addresses = new URI[1];
addresses[0] = new URI(OA);
String senderName = "106602230003";
SOAPHeaderElement SOAPHeader = new SOAPHeaderElement( "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1","RequestSOAPHeader");
SOAPHeader.addChildElement("spId").addTextNode(spId);
SOAPHeader.addChildElement("spPassword").addTextNode(spPassword);
SOAPHeader.addChildElement("timeStamp").addTextNode(timeStamp);
SOAPHeader.addChildElement("productId").addTextNode(productId);
SOAPHeader.addChildElement("multicastMessaging").addTextNode(multicastMessaging);
SOAPHeader.addChildElement("OA").addTextNode(OA);
SOAPHeader.addChildElement("transactionId").addTextNode(transactionId);
SOAPHeader.addChildElement("transEnd").addTextNode(transEnd);
SOAPHeader.addChildElement("linkId").addTextNode(linkId);
SOAPHeader.addChildElement("FA").addTextNode(FA);
SOAPHeader.addChildElement("SAN").addTextNode(SAN);
SOAPHeader.addChildElement("senderName").addTextNode(senderName);
((SendSmsBindingStub) sendSMSClient).setHeader(SOAPHeader);
// 回执信息
SimpleReference receiptRequest = new SimpleReference();
receiptRequest.setCorrelator(transactionId); // 关联标识
receiptRequest.setInterfaceName("SmsNotification"); // 接口名称
receiptRequest.setEndpoint(new URI("http://219.136.241.214:8088/notification/services/smsNotification")); // 端口
ChargingInformation charging = new ChargingInformation();// 短消息
StringBuffer message = new StringBuffer();
String requestIdentifier = sendSMSClient.sendSms(addresses,
senderName, charging, message.toString(), receiptRequest);