⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notifymmsstatus.java~4~

📁 电信ISAG的服务连接和服务
💻 JAVA~4~
字号:
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("A2134148854",di);
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }

  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -