notifymmsstatus.java~3~
来自「电信ISAG的服务连接和服务」· JAVA~3~ 代码 · 共 26 行
JAVA~3~
26 行
package test.mmsTest;
import cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2.service.MessageNotificationServiceLocator;
import java.net.URL;
import cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.notification.v2_2._interface.MessageNotification;
import cn.com.chinatelecom.www.schema.ctcc.multimedia_messaging.v2_2.DeliveryInformation;
import cn.com.chinatelecom.www.schema.ctcc.multimedia_messaging.v2_2.DeliveryStatus;
import org.apache.axis.types.URI;
public class notifyMmsStatus {
public static void main(String[] args) {
try {
URL url = new URL("http://10.40.58.252:8088");
MessageNotificationServiceLocator mnsl = new MessageNotificationServiceLocator();
MessageNotification service = mnsl.getMessageNotification(url);
DeliveryInformation di = new DeliveryInformation();
di.setAddress(new URI("tel:169017109121"));
di.setDeliveryStatus(DeliveryStatus.DeliveredToTerminal);
service.notifyMessageDeliveryReceipt("A2134148853",di);
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?