4 changed files with 91 additions and 12 deletions
@ -0,0 +1,64 @@ |
|||||
|
package com.yxt.supervise.report.biz.util; |
||||
|
|
||||
|
import org.apache.axis.client.Call; |
||||
|
import org.apache.axis.client.Service; |
||||
|
import org.apache.axis.encoding.XMLType; |
||||
|
|
||||
|
import javax.xml.namespace.QName; |
||||
|
|
||||
|
/** |
||||
|
* @author dimengzhe |
||||
|
* @date 2020/9/11 8:59 |
||||
|
* @description 发送短信调用接口 |
||||
|
*/ |
||||
|
public class MsgWs { |
||||
|
private static String msgSign="【云仓贷后】"; |
||||
|
// private static String msgtitle="河北省计量业务应用平台提醒:";
|
||||
|
public static String MSG_NEWPWD="用户,您好!您的新密码为:"; |
||||
|
public static String MSG_VERIFY = "用户,您好!您注册的单位已审核通过,管理员的密码为:"; |
||||
|
public static String MSG_VERIFY_NO = "用户,您好!您注册的单位未审核通过,未通过原因:"; |
||||
|
public static String MSG_VERIFY_ONE = "用户,您好!您所填写的基本信息未通过。请及时登录系统修改。"; |
||||
|
|
||||
|
public static String MSG_USER_VERIFY = "用户,您好!您注册的个人信息已审核通过"; |
||||
|
public static String MSG_USER_VERIFY_NO = "用户,您好!您注册的个人信息未审核通过,未通过原因:"; |
||||
|
public static String MSG_ORG_STAFF = "尊敬的用户,您好!您绑定的单位已审核通过,可登陆系统进行查看"; |
||||
|
public static String MSG_USING = "尊敬的用户,您好!有待确认的单位信息需确认,请及时确认信息"; |
||||
|
|
||||
|
public static String MSG_OA_FILE_SEND = "用户,您好!协同办公中您收到一份文件,请查阅:"; |
||||
|
public static String SendWaitWorkMsg(String mobile, String msg) { |
||||
|
try { |
||||
|
|
||||
|
String urlname = "http://sdk1.mb345.com/ws/LinkWS.asmx"; |
||||
|
String soapActionURI = "http://tempuri.org/BatchSend"; |
||||
|
Service s = new Service(); |
||||
|
Call call = (Call) s.createCall(); |
||||
|
call.setTimeout(new Integer(5000)); |
||||
|
call.setUseSOAPAction(true); |
||||
|
call.setSOAPActionURI(soapActionURI); |
||||
|
// wsdl中接口名称
|
||||
|
call.setOperationName(new QName("http://tempuri.org/", "BatchSend")); |
||||
|
call.setTargetEndpointAddress(urlname); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "CorpID"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "Pwd"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "Mobile"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "Content"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "Cell"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
call.addParameter(new QName("http://tempuri.org/", "SendTime"), XMLType.XSD_STRING, |
||||
|
javax.xml.rpc.ParameterMode.IN); |
||||
|
// String[] fn01 = {"YXT010045", "yuxintonghygl", mobile, msgtitle+msg+msgSign, "", ""};
|
||||
|
// String[] fn01 = {"YXT010045", "yuxintonghygl", mobile, msg+msgSign, "", ""};
|
||||
|
String[] fn01 = {"YXT011836", "yxt_hryl230223", mobile, msg+msgSign, "", ""}; |
||||
|
String val = (String) call.invoke(fn01); |
||||
|
return val; |
||||
|
|
||||
|
} catch (Exception e) { |
||||
|
return e.getMessage(); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue