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

📄 notifysms.java~9~

📁 电信ISAG的服务连接和服务
💻 JAVA~9~
字号:
package test.smsTest;import java.net.URL;import cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceLocator;import cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1._interface.SmsNotification;import cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.SmsMessage;import org.apache.axis.types.URI;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class notifySms {  public notifySms() {  }  public static void main(String ag[]){    try {      //URL url = new URL("http://10.40.58.252:8088/");      URL url = new URL("http://localhost:8086/spWeb/services/SmsNotification");      SmsNotificationServiceLocator snsl = new SmsNotificationServiceLocator();      SmsNotification sn = snsl.getSmsNotification(url);      java.lang.String correlator = "123";      SmsMessage message  = new SmsMessage();      message.setMessage("C13888888888 中国!");      message.setSenderAddress(new URI("tel:85313899998888"));      message.setSmsServiceActivationNumber(new URI("tel:3434"));      sn.notifySmsReception(correlator,message);      System.out.println("end");    }    catch (Exception ex) {      ex.printStackTrace();    }  }}

⌨️ 快捷键说明

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