📄 sendsmslogo.java
字号:
package test.smsTest;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2006</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
import cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1.service.*;
import cn.com.chinatelecom.www.wsdl.ctcc.sms.send.v2_1._interface.*;
import java.net.URL;
import cn.com.chinatelecom.www.schema.ctcc.sms.v2_1.*;
import cn.com.chinatelecom.www.schema.ctcc.common.v2_1.*;
import org.apache.axis.types.URI;
public class sendSmsLogo {
public sendSmsLogo() {
}
public static void main(String[] args) {
try {
URL url = new URL("http://10.41.83.115:8083/sagWeb/services/SendSms");
SendSmsServiceLocator locator = new SendSmsServiceLocator();
SendSms service = locator.getSendSms(url);
org.apache.axis.types.URI[] addresses = new org.apache.axis.
types.URI[1];
String num = "13977770117";
addresses[0] = new org.apache.axis.types.URI("tel:" + num);
String senderName = "123456789";
byte[] image = new byte[1];
image[0] = 'a';
SmsFormat smsFormat = SmsFormat.Ems;
ChargingInformation charging = new ChargingInformation("haha",
"yes", new java.math.BigDecimal("100"), num);
SimpleReference receiptRequest = null;
try {
receiptRequest = new SimpleReference(new org.apache.axis.
types.URI("tel:" + num), "1",
"333");
}
catch (Exception ex) {
ex.printStackTrace();
}
String reqId = service.sendSmsLogo(addresses, senderName,
charging, image, smsFormat, receiptRequest);
System.out.println("reqId:" + reqId);
}
catch (Exception ex) {
ex.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -