mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 10:16:38 +08:00
adding sms
This commit is contained in:
parent
0045263a7a
commit
a7c4e6e6ca
@ -286,6 +286,30 @@
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- axis 依赖开始 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.axis</groupId>
|
||||
<artifactId>axis</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>axis</groupId>
|
||||
<artifactId>axis-jaxrpc</artifactId>
|
||||
<version>1.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-discovery</groupId>
|
||||
<artifactId>commons-discovery</artifactId>
|
||||
<version>0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>wsdl4j</groupId>
|
||||
<artifactId>wsdl4j</artifactId>
|
||||
<version>1.6.3</version>
|
||||
</dependency>
|
||||
<!-- axis 依赖结束 -->
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
@ -14,11 +14,7 @@ import net.lab1024.smartadmin.constant.SwaggerTagConst;
|
||||
import net.lab1024.smartadmin.module.system.alipay.alipayModel.AliPayEntity;
|
||||
import net.lab1024.smartadmin.module.system.alipay.conf.AlipayConfig;
|
||||
import net.lab1024.smartadmin.module.system.qrcode.QRCodeUtil;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.good.service.GoodService;
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* CanelSMS.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class CanelSMS implements java.io.Serializable {
|
||||
private java.lang.String messageID;
|
||||
|
||||
public CanelSMS() {
|
||||
}
|
||||
|
||||
public CanelSMS(
|
||||
java.lang.String messageID) {
|
||||
this.messageID = messageID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the messageID value for this CanelSMS.
|
||||
*
|
||||
* @return messageID
|
||||
*/
|
||||
public java.lang.String getMessageID() {
|
||||
return messageID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the messageID value for this CanelSMS.
|
||||
*
|
||||
* @param messageID
|
||||
*/
|
||||
public void setMessageID(java.lang.String messageID) {
|
||||
this.messageID = messageID;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof CanelSMS)) return false;
|
||||
CanelSMS other = (CanelSMS) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.messageID==null && other.getMessageID()==null) ||
|
||||
(this.messageID!=null &&
|
||||
this.messageID.equals(other.getMessageID())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getMessageID() != null) {
|
||||
_hashCode += getMessageID().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(CanelSMS.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">CanelSMS"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("messageID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MessageID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* CanelSMSResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class CanelSMSResponse implements java.io.Serializable {
|
||||
private java.lang.String canelSMSResult;
|
||||
|
||||
public CanelSMSResponse() {
|
||||
}
|
||||
|
||||
public CanelSMSResponse(
|
||||
java.lang.String canelSMSResult) {
|
||||
this.canelSMSResult = canelSMSResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the canelSMSResult value for this CanelSMSResponse.
|
||||
*
|
||||
* @return canelSMSResult
|
||||
*/
|
||||
public java.lang.String getCanelSMSResult() {
|
||||
return canelSMSResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the canelSMSResult value for this CanelSMSResponse.
|
||||
*
|
||||
* @param canelSMSResult
|
||||
*/
|
||||
public void setCanelSMSResult(java.lang.String canelSMSResult) {
|
||||
this.canelSMSResult = canelSMSResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof CanelSMSResponse)) return false;
|
||||
CanelSMSResponse other = (CanelSMSResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.canelSMSResult==null && other.getCanelSMSResult()==null) ||
|
||||
(this.canelSMSResult!=null &&
|
||||
this.canelSMSResult.equals(other.getCanelSMSResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getCanelSMSResult() != null) {
|
||||
_hashCode += getCanelSMSResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(CanelSMSResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">CanelSMSResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("canelSMSResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "CanelSMSResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
/**
|
||||
* QuerySMSStateResponseQuerySMSStateResult.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySMSStateResponseQuerySMSStateResult implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
|
||||
private org.apache.axis.message.MessageElement [] _any;
|
||||
|
||||
public QuerySMSStateResponseQuerySMSStateResult() {
|
||||
}
|
||||
|
||||
public QuerySMSStateResponseQuerySMSStateResult(
|
||||
org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the _any value for this QuerySMSStateResponseQuerySMSStateResult.
|
||||
*
|
||||
* @return _any
|
||||
*/
|
||||
public org.apache.axis.message.MessageElement [] get_any() {
|
||||
return _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the _any value for this QuerySMSStateResponseQuerySMSStateResult.
|
||||
*
|
||||
* @param _any
|
||||
*/
|
||||
public void set_any(org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySMSStateResponseQuerySMSStateResult)) return false;
|
||||
QuerySMSStateResponseQuerySMSStateResult other = (QuerySMSStateResponseQuerySMSStateResult) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this._any==null && other.get_any()==null) ||
|
||||
(this._any!=null &&
|
||||
java.util.Arrays.equals(this._any, other.get_any())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (get_any() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(get_any());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySMSStateResponseQuerySMSStateResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSStateResponse>QuerySMSStateResult"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,221 @@
|
||||
/**
|
||||
* QuerySMSUP.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySMSUP implements java.io.Serializable {
|
||||
private int minID;
|
||||
|
||||
private int count;
|
||||
|
||||
private java.lang.String tokenID;
|
||||
|
||||
private java.lang.String externCode;
|
||||
|
||||
public QuerySMSUP() {
|
||||
}
|
||||
|
||||
public QuerySMSUP(
|
||||
int minID,
|
||||
int count,
|
||||
java.lang.String tokenID,
|
||||
java.lang.String externCode) {
|
||||
this.minID = minID;
|
||||
this.count = count;
|
||||
this.tokenID = tokenID;
|
||||
this.externCode = externCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the minID value for this QuerySMSUP.
|
||||
*
|
||||
* @return minID
|
||||
*/
|
||||
public int getMinID() {
|
||||
return minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the minID value for this QuerySMSUP.
|
||||
*
|
||||
* @param minID
|
||||
*/
|
||||
public void setMinID(int minID) {
|
||||
this.minID = minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the count value for this QuerySMSUP.
|
||||
*
|
||||
* @return count
|
||||
*/
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the count value for this QuerySMSUP.
|
||||
*
|
||||
* @param count
|
||||
*/
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the tokenID value for this QuerySMSUP.
|
||||
*
|
||||
* @return tokenID
|
||||
*/
|
||||
public java.lang.String getTokenID() {
|
||||
return tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the tokenID value for this QuerySMSUP.
|
||||
*
|
||||
* @param tokenID
|
||||
*/
|
||||
public void setTokenID(java.lang.String tokenID) {
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the externCode value for this QuerySMSUP.
|
||||
*
|
||||
* @return externCode
|
||||
*/
|
||||
public java.lang.String getExternCode() {
|
||||
return externCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the externCode value for this QuerySMSUP.
|
||||
*
|
||||
* @param externCode
|
||||
*/
|
||||
public void setExternCode(java.lang.String externCode) {
|
||||
this.externCode = externCode;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySMSUP)) return false;
|
||||
QuerySMSUP other = (QuerySMSUP) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.minID == other.getMinID() &&
|
||||
this.count == other.getCount() &&
|
||||
((this.tokenID==null && other.getTokenID()==null) ||
|
||||
(this.tokenID!=null &&
|
||||
this.tokenID.equals(other.getTokenID()))) &&
|
||||
((this.externCode==null && other.getExternCode()==null) ||
|
||||
(this.externCode!=null &&
|
||||
this.externCode.equals(other.getExternCode())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += getMinID();
|
||||
_hashCode += getCount();
|
||||
if (getTokenID() != null) {
|
||||
_hashCode += getTokenID().hashCode();
|
||||
}
|
||||
if (getExternCode() != null) {
|
||||
_hashCode += getExternCode().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySMSUP.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySMSUP"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("minID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("count");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "Count"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("tokenID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("externCode");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "externCode"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* QuerySMSUPResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySMSUPResponse implements java.io.Serializable {
|
||||
private net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult querySMSUPResult;
|
||||
|
||||
public QuerySMSUPResponse() {
|
||||
}
|
||||
|
||||
public QuerySMSUPResponse(
|
||||
net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult querySMSUPResult) {
|
||||
this.querySMSUPResult = querySMSUPResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the querySMSUPResult value for this QuerySMSUPResponse.
|
||||
*
|
||||
* @return querySMSUPResult
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult getQuerySMSUPResult() {
|
||||
return querySMSUPResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the querySMSUPResult value for this QuerySMSUPResponse.
|
||||
*
|
||||
* @param querySMSUPResult
|
||||
*/
|
||||
public void setQuerySMSUPResult(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult querySMSUPResult) {
|
||||
this.querySMSUPResult = querySMSUPResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySMSUPResponse)) return false;
|
||||
QuerySMSUPResponse other = (QuerySMSUPResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.querySMSUPResult==null && other.getQuerySMSUPResult()==null) ||
|
||||
(this.querySMSUPResult!=null &&
|
||||
this.querySMSUPResult.equals(other.getQuerySMSUPResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getQuerySMSUPResult() != null) {
|
||||
_hashCode += getQuerySMSUPResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySMSUPResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySMSUPResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("querySMSUPResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySMSUPResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSUPResponse>QuerySMSUPResult"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
/**
|
||||
* QuerySMSUPResponseQuerySMSUPResult.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySMSUPResponseQuerySMSUPResult implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
|
||||
private org.apache.axis.message.MessageElement [] _any;
|
||||
|
||||
public QuerySMSUPResponseQuerySMSUPResult() {
|
||||
}
|
||||
|
||||
public QuerySMSUPResponseQuerySMSUPResult(
|
||||
org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the _any value for this QuerySMSUPResponseQuerySMSUPResult.
|
||||
*
|
||||
* @return _any
|
||||
*/
|
||||
public org.apache.axis.message.MessageElement [] get_any() {
|
||||
return _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the _any value for this QuerySMSUPResponseQuerySMSUPResult.
|
||||
*
|
||||
* @param _any
|
||||
*/
|
||||
public void set_any(org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySMSUPResponseQuerySMSUPResult)) return false;
|
||||
QuerySMSUPResponseQuerySMSUPResult other = (QuerySMSUPResponseQuerySMSUPResult) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this._any==null && other.get_any()==null) ||
|
||||
(this._any!=null &&
|
||||
java.util.Arrays.equals(this._any, other.get_any())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (get_any() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(get_any());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySMSUPResponseQuerySMSUPResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSUPResponse>QuerySMSUPResult"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,188 @@
|
||||
/**
|
||||
* QuerySmsSendRecord.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSendRecord implements java.io.Serializable {
|
||||
private java.util.Calendar time;
|
||||
|
||||
private int minID;
|
||||
|
||||
private java.lang.String tokenID;
|
||||
|
||||
public QuerySmsSendRecord() {
|
||||
}
|
||||
|
||||
public QuerySmsSendRecord(
|
||||
java.util.Calendar time,
|
||||
int minID,
|
||||
java.lang.String tokenID) {
|
||||
this.time = time;
|
||||
this.minID = minID;
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the time value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @return time
|
||||
*/
|
||||
public java.util.Calendar getTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the time value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @param time
|
||||
*/
|
||||
public void setTime(java.util.Calendar time) {
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the minID value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @return minID
|
||||
*/
|
||||
public int getMinID() {
|
||||
return minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the minID value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @param minID
|
||||
*/
|
||||
public void setMinID(int minID) {
|
||||
this.minID = minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the tokenID value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @return tokenID
|
||||
*/
|
||||
public java.lang.String getTokenID() {
|
||||
return tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the tokenID value for this QuerySmsSendRecord.
|
||||
*
|
||||
* @param tokenID
|
||||
*/
|
||||
public void setTokenID(java.lang.String tokenID) {
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSendRecord)) return false;
|
||||
QuerySmsSendRecord other = (QuerySmsSendRecord) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.time==null && other.getTime()==null) ||
|
||||
(this.time!=null &&
|
||||
this.time.equals(other.getTime()))) &&
|
||||
this.minID == other.getMinID() &&
|
||||
((this.tokenID==null && other.getTokenID()==null) ||
|
||||
(this.tokenID!=null &&
|
||||
this.tokenID.equals(other.getTokenID())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getTime() != null) {
|
||||
_hashCode += getTime().hashCode();
|
||||
}
|
||||
_hashCode += getMinID();
|
||||
if (getTokenID() != null) {
|
||||
_hashCode += getTokenID().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSendRecord.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSendRecord"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("time");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "time"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("minID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("tokenID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* QuerySmsSendRecordResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSendRecordResponse implements java.io.Serializable {
|
||||
private net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult querySmsSendRecordResult;
|
||||
|
||||
public QuerySmsSendRecordResponse() {
|
||||
}
|
||||
|
||||
public QuerySmsSendRecordResponse(
|
||||
net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult querySmsSendRecordResult) {
|
||||
this.querySmsSendRecordResult = querySmsSendRecordResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the querySmsSendRecordResult value for this QuerySmsSendRecordResponse.
|
||||
*
|
||||
* @return querySmsSendRecordResult
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult getQuerySmsSendRecordResult() {
|
||||
return querySmsSendRecordResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the querySmsSendRecordResult value for this QuerySmsSendRecordResponse.
|
||||
*
|
||||
* @param querySmsSendRecordResult
|
||||
*/
|
||||
public void setQuerySmsSendRecordResult(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult querySmsSendRecordResult) {
|
||||
this.querySmsSendRecordResult = querySmsSendRecordResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSendRecordResponse)) return false;
|
||||
QuerySmsSendRecordResponse other = (QuerySmsSendRecordResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.querySmsSendRecordResult==null && other.getQuerySmsSendRecordResult()==null) ||
|
||||
(this.querySmsSendRecordResult!=null &&
|
||||
this.querySmsSendRecordResult.equals(other.getQuerySmsSendRecordResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getQuerySmsSendRecordResult() != null) {
|
||||
_hashCode += getQuerySmsSendRecordResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSendRecordResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSendRecordResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("querySmsSendRecordResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSendRecordResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSendRecordResponse>QuerySmsSendRecordResult"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
/**
|
||||
* QuerySmsSendRecordResponseQuerySmsSendRecordResult.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSendRecordResponseQuerySmsSendRecordResult implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
|
||||
private org.apache.axis.message.MessageElement [] _any;
|
||||
|
||||
public QuerySmsSendRecordResponseQuerySmsSendRecordResult() {
|
||||
}
|
||||
|
||||
public QuerySmsSendRecordResponseQuerySmsSendRecordResult(
|
||||
org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the _any value for this QuerySmsSendRecordResponseQuerySmsSendRecordResult.
|
||||
*
|
||||
* @return _any
|
||||
*/
|
||||
public org.apache.axis.message.MessageElement [] get_any() {
|
||||
return _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the _any value for this QuerySmsSendRecordResponseQuerySmsSendRecordResult.
|
||||
*
|
||||
* @param _any
|
||||
*/
|
||||
public void set_any(org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSendRecordResponseQuerySmsSendRecordResult)) return false;
|
||||
QuerySmsSendRecordResponseQuerySmsSendRecordResult other = (QuerySmsSendRecordResponseQuerySmsSendRecordResult) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this._any==null && other.get_any()==null) ||
|
||||
(this._any!=null &&
|
||||
java.util.Arrays.equals(this._any, other.get_any())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (get_any() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(get_any());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSendRecordResponseQuerySmsSendRecordResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSendRecordResponse>QuerySmsSendRecordResult"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,152 @@
|
||||
/**
|
||||
* QuerySmsSeqReport.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSeqReport implements java.io.Serializable {
|
||||
private long minID;
|
||||
|
||||
private java.lang.String tokenID;
|
||||
|
||||
public QuerySmsSeqReport() {
|
||||
}
|
||||
|
||||
public QuerySmsSeqReport(
|
||||
long minID,
|
||||
java.lang.String tokenID) {
|
||||
this.minID = minID;
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the minID value for this QuerySmsSeqReport.
|
||||
*
|
||||
* @return minID
|
||||
*/
|
||||
public long getMinID() {
|
||||
return minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the minID value for this QuerySmsSeqReport.
|
||||
*
|
||||
* @param minID
|
||||
*/
|
||||
public void setMinID(long minID) {
|
||||
this.minID = minID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the tokenID value for this QuerySmsSeqReport.
|
||||
*
|
||||
* @return tokenID
|
||||
*/
|
||||
public java.lang.String getTokenID() {
|
||||
return tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the tokenID value for this QuerySmsSeqReport.
|
||||
*
|
||||
* @param tokenID
|
||||
*/
|
||||
public void setTokenID(java.lang.String tokenID) {
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSeqReport)) return false;
|
||||
QuerySmsSeqReport other = (QuerySmsSeqReport) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.minID == other.getMinID() &&
|
||||
((this.tokenID==null && other.getTokenID()==null) ||
|
||||
(this.tokenID!=null &&
|
||||
this.tokenID.equals(other.getTokenID())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += new Long(getMinID()).hashCode();
|
||||
if (getTokenID() != null) {
|
||||
_hashCode += getTokenID().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSeqReport.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSeqReport"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("minID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("tokenID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* QuerySmsSeqReportResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSeqReportResponse implements java.io.Serializable {
|
||||
private net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult querySmsSeqReportResult;
|
||||
|
||||
public QuerySmsSeqReportResponse() {
|
||||
}
|
||||
|
||||
public QuerySmsSeqReportResponse(
|
||||
net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult querySmsSeqReportResult) {
|
||||
this.querySmsSeqReportResult = querySmsSeqReportResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the querySmsSeqReportResult value for this QuerySmsSeqReportResponse.
|
||||
*
|
||||
* @return querySmsSeqReportResult
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult getQuerySmsSeqReportResult() {
|
||||
return querySmsSeqReportResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the querySmsSeqReportResult value for this QuerySmsSeqReportResponse.
|
||||
*
|
||||
* @param querySmsSeqReportResult
|
||||
*/
|
||||
public void setQuerySmsSeqReportResult(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult querySmsSeqReportResult) {
|
||||
this.querySmsSeqReportResult = querySmsSeqReportResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSeqReportResponse)) return false;
|
||||
QuerySmsSeqReportResponse other = (QuerySmsSeqReportResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.querySmsSeqReportResult==null && other.getQuerySmsSeqReportResult()==null) ||
|
||||
(this.querySmsSeqReportResult!=null &&
|
||||
this.querySmsSeqReportResult.equals(other.getQuerySmsSeqReportResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getQuerySmsSeqReportResult() != null) {
|
||||
_hashCode += getQuerySmsSeqReportResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSeqReportResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSeqReportResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("querySmsSeqReportResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSeqReportResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSeqReportResponse>QuerySmsSeqReportResult"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
/**
|
||||
* QuerySmsSeqReportResponseQuerySmsSeqReportResult.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class QuerySmsSeqReportResponseQuerySmsSeqReportResult implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
|
||||
private org.apache.axis.message.MessageElement [] _any;
|
||||
|
||||
public QuerySmsSeqReportResponseQuerySmsSeqReportResult() {
|
||||
}
|
||||
|
||||
public QuerySmsSeqReportResponseQuerySmsSeqReportResult(
|
||||
org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the _any value for this QuerySmsSeqReportResponseQuerySmsSeqReportResult.
|
||||
*
|
||||
* @return _any
|
||||
*/
|
||||
public org.apache.axis.message.MessageElement [] get_any() {
|
||||
return _any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the _any value for this QuerySmsSeqReportResponseQuerySmsSeqReportResult.
|
||||
*
|
||||
* @param _any
|
||||
*/
|
||||
public void set_any(org.apache.axis.message.MessageElement [] _any) {
|
||||
this._any = _any;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof QuerySmsSeqReportResponseQuerySmsSeqReportResult)) return false;
|
||||
QuerySmsSeqReportResponseQuerySmsSeqReportResult other = (QuerySmsSeqReportResponseQuerySmsSeqReportResult) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this._any==null && other.get_any()==null) ||
|
||||
(this._any!=null &&
|
||||
java.util.Arrays.equals(this._any, other.get_any())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (get_any() != null) {
|
||||
for (int i=0;
|
||||
i<java.lang.reflect.Array.getLength(get_any());
|
||||
i++) {
|
||||
java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
|
||||
if (obj != null &&
|
||||
!obj.getClass().isArray()) {
|
||||
_hashCode += obj.hashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(QuerySmsSeqReportResponseQuerySmsSeqReportResult.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSeqReportResponse>QuerySmsSeqReportResult"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import net.lab1024.smartadmin.common.anno.OperateLog;
|
||||
import net.lab1024.smartadmin.common.domain.ResponseDTO;
|
||||
import net.lab1024.smartadmin.constant.SwaggerTagConst;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.good.constant.OrderResponseCodeConst;
|
||||
import net.lab1024.smartadmin.util.MD5Utils;
|
||||
import net.lab1024.smartadmin.util.SmsUtil;
|
||||
import org.apache.commons.lang.RandomStringUtils;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = {SwaggerTagConst.Admin.MANAGER_MALL_API})
|
||||
@OperateLog
|
||||
@RestController
|
||||
public class SMSController {
|
||||
|
||||
private static final String KEY = "abc123"; // KEY为自定义秘钥
|
||||
|
||||
|
||||
@RequestMapping(value = "royalcanin/sendMsg", method = RequestMethod.POST, headers = "Accept=application/json")
|
||||
public Map<String, Object> sendMsg(@RequestBody Map<String,Object> requestMap) {
|
||||
String phoneNumber = requestMap.get("phoneNumber").toString();
|
||||
String randomNum = RandomStringUtils.random(6,false,true);
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.add(Calendar.MINUTE, 5);
|
||||
String currentTime = sf.format(c.getTime());// 生成5分钟后时间,用户校验是否过期
|
||||
SmsUtil.sendMsg(phoneNumber,randomNum); //此处执行发送短信验证码方法
|
||||
String hash = MD5Utils.getMD5Code(KEY + "@" + currentTime + "@" + randomNum);//生成MD5值
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("hash", hash);
|
||||
resultMap.put("msgNum",randomNum);
|
||||
resultMap.put("tamp", currentTime);
|
||||
return resultMap; //将hash值和tamp时间返回给前端
|
||||
}
|
||||
@RequestMapping(value = "royalcanin/validateNum", method = RequestMethod.POST, headers = "Accept=application/json")
|
||||
public ResponseDTO<String> validateNum(@RequestBody Map<String,Object> requestMap) {
|
||||
SimpleDateFormat sf = new SimpleDateFormat("yyyyMMddHHmmss");
|
||||
String currentTime = sf.format(new Date());
|
||||
String requestHash = requestMap.get("hash").toString();
|
||||
String tamp = requestMap.get("tamp").toString();
|
||||
String msgNum = requestMap.get("msgNum").toString();
|
||||
String hash = MD5Utils.getMD5Code(KEY + "@" + tamp + "@" + msgNum);
|
||||
if (tamp.compareTo(currentTime) > 0) {
|
||||
if (hash.equalsIgnoreCase(requestHash)){
|
||||
//校验成功
|
||||
return ResponseDTO.succ();
|
||||
}else {
|
||||
//验证码不正确,校验失败
|
||||
return ResponseDTO.wrap(OrderResponseCodeConst.SMS_FAIL);
|
||||
}
|
||||
} else {
|
||||
return ResponseDTO.wrap(OrderResponseCodeConst.SMS_OVERTIME);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* SMSService.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public interface SMSService extends javax.xml.rpc.Service {
|
||||
public java.lang.String getSMSServiceSoapAddress();
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType getSMSServiceSoap() throws javax.xml.rpc.ServiceException;
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType getSMSServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
|
||||
}
|
@ -0,0 +1,142 @@
|
||||
/**
|
||||
* SMSServiceLocator.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class SMSServiceLocator extends org.apache.axis.client.Service implements net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSService {
|
||||
|
||||
public SMSServiceLocator() {
|
||||
}
|
||||
|
||||
|
||||
public SMSServiceLocator(org.apache.axis.EngineConfiguration config) {
|
||||
super(config);
|
||||
}
|
||||
|
||||
public SMSServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
||||
super(wsdlLoc, sName);
|
||||
}
|
||||
|
||||
// Use to get a proxy class for SMSServiceSoap
|
||||
private java.lang.String SMSServiceSoap_address = "http://www.wemediacn.net/webservice/smsservice.asmx";
|
||||
|
||||
public java.lang.String getSMSServiceSoapAddress() {
|
||||
return SMSServiceSoap_address;
|
||||
}
|
||||
|
||||
// The WSDD service name defaults to the port name.
|
||||
private java.lang.String SMSServiceSoapWSDDServiceName = "SMSServiceSoap";
|
||||
|
||||
public java.lang.String getSMSServiceSoapWSDDServiceName() {
|
||||
return SMSServiceSoapWSDDServiceName;
|
||||
}
|
||||
|
||||
public void setSMSServiceSoapWSDDServiceName(java.lang.String name) {
|
||||
SMSServiceSoapWSDDServiceName = name;
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType getSMSServiceSoap() throws javax.xml.rpc.ServiceException {
|
||||
java.net.URL endpoint;
|
||||
try {
|
||||
endpoint = new java.net.URL(SMSServiceSoap_address);
|
||||
}
|
||||
catch (java.net.MalformedURLException e) {
|
||||
throw new javax.xml.rpc.ServiceException(e);
|
||||
}
|
||||
return getSMSServiceSoap(endpoint);
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType getSMSServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_BindingStub _stub = new net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_BindingStub(portAddress, this);
|
||||
_stub.setPortName(getSMSServiceSoapWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
catch (org.apache.axis.AxisFault e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void setSMSServiceSoapEndpointAddress(java.lang.String address) {
|
||||
SMSServiceSoap_address = address;
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
try {
|
||||
if (net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
||||
net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_BindingStub _stub = new net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_BindingStub(new java.net.URL(SMSServiceSoap_address), this);
|
||||
_stub.setPortName(getSMSServiceSoapWSDDServiceName());
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
catch (java.lang.Throwable t) {
|
||||
throw new javax.xml.rpc.ServiceException(t);
|
||||
}
|
||||
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
||||
}
|
||||
|
||||
/**
|
||||
* For the given interface, get the stub implementation.
|
||||
* If this service has no port for the given interface,
|
||||
* then ServiceException is thrown.
|
||||
*/
|
||||
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
||||
if (portName == null) {
|
||||
return getPort(serviceEndpointInterface);
|
||||
}
|
||||
java.lang.String inputPortName = portName.getLocalPart();
|
||||
if ("SMSServiceSoap".equals(inputPortName)) {
|
||||
return getSMSServiceSoap();
|
||||
}
|
||||
else {
|
||||
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
||||
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
||||
return _stub;
|
||||
}
|
||||
}
|
||||
|
||||
public javax.xml.namespace.QName getServiceName() {
|
||||
return new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SMSService");
|
||||
}
|
||||
|
||||
private java.util.HashSet ports = null;
|
||||
|
||||
public java.util.Iterator getPorts() {
|
||||
if (ports == null) {
|
||||
ports = new java.util.HashSet();
|
||||
ports.add(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SMSServiceSoap"));
|
||||
}
|
||||
return ports.iterator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
|
||||
if ("SMSServiceSoap".equals(portName)) {
|
||||
setSMSServiceSoapEndpointAddress(address);
|
||||
}
|
||||
else
|
||||
{ // Unknown Port Name
|
||||
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the endpoint address for the specified port name.
|
||||
*/
|
||||
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
||||
setEndpointAddress(portName.getLocalPart(), address);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,752 @@
|
||||
/**
|
||||
* SMSServiceSoap_BindingStub.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class SMSServiceSoap_BindingStub extends org.apache.axis.client.Stub implements net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_PortType {
|
||||
private java.util.Vector cachedSerClasses = new java.util.Vector();
|
||||
private java.util.Vector cachedSerQNames = new java.util.Vector();
|
||||
private java.util.Vector cachedSerFactories = new java.util.Vector();
|
||||
private java.util.Vector cachedDeserFactories = new java.util.Vector();
|
||||
|
||||
static org.apache.axis.description.OperationDesc [] _operations;
|
||||
|
||||
static {
|
||||
_operations = new org.apache.axis.description.OperationDesc[10];
|
||||
_initOperationDesc1();
|
||||
}
|
||||
|
||||
private static void _initOperationDesc1(){
|
||||
org.apache.axis.description.OperationDesc oper;
|
||||
org.apache.axis.description.ParameterDesc param;
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("SendSMS");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "mobile"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "FormatID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "Content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "ScheduleDate"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendSMSResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[0] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("SendBatchSMS");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "mobileList"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "FormatID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "Content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "deadLineTime"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendBatchSMSResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[1] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("SendSMSCovey");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "XMLStr"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendSMSCoveyResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[2] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("QuerySMSState");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MessageID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSStateResponse>QuerySMSStateResult"));
|
||||
oper.setReturnClass(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySMSStateResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[3] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("QuerySmsSendRecord");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "time"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSendRecordResponse>QuerySmsSendRecordResult"));
|
||||
oper.setReturnClass(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSendRecordResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[4] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("CanelSMS");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MessageID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "CanelSMSResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[5] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("QuerySMSUP");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "Count"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "externCode"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSUPResponse>QuerySMSUPResult"));
|
||||
oper.setReturnClass(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySMSUPResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[6] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("QuerySmsSeqReport");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "MinID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"), long.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSeqReportResponse>QuerySmsSeqReportResult"));
|
||||
oper.setReturnClass(net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSeqReportResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[7] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("TestTemplate");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "templateId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TestTemplateResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[8] = oper;
|
||||
|
||||
oper = new org.apache.axis.description.OperationDesc();
|
||||
oper.setName("SendTemplateSMS");
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "mobile"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "FormatID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "templateId"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramType"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false);
|
||||
param.setOmittable(true);
|
||||
oper.addParameter(param);
|
||||
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
oper.setReturnClass(java.lang.String.class);
|
||||
oper.setReturnQName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendTemplateSMSResult"));
|
||||
oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
|
||||
oper.setUse(org.apache.axis.constants.Use.LITERAL);
|
||||
_operations[9] = oper;
|
||||
|
||||
}
|
||||
|
||||
public SMSServiceSoap_BindingStub() throws org.apache.axis.AxisFault {
|
||||
this(null);
|
||||
}
|
||||
|
||||
public SMSServiceSoap_BindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
this(service);
|
||||
super.cachedEndpoint = endpointURL;
|
||||
}
|
||||
|
||||
public SMSServiceSoap_BindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
|
||||
if (service == null) {
|
||||
super.service = new org.apache.axis.client.Service();
|
||||
} else {
|
||||
super.service = service;
|
||||
}
|
||||
((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.1");
|
||||
java.lang.Class cls;
|
||||
javax.xml.namespace.QName qName;
|
||||
javax.xml.namespace.QName qName2;
|
||||
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
|
||||
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
|
||||
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
|
||||
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
|
||||
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
|
||||
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
|
||||
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
|
||||
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
|
||||
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
|
||||
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSendRecordResponse>QuerySmsSendRecordResult");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySmsSeqReportResponse>QuerySmsSeqReportResult");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSStateResponse>QuerySMSStateResult");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">>QuerySMSUPResponse>QuerySMSUPResult");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">CanelSMS");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.CanelSMS.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">CanelSMSResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.CanelSMSResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSendRecord");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecord.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSendRecordResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSeqReport");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReport.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySmsSeqReportResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySMSUP");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUP.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">QuerySMSUPResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">SendTemplateSMS");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.SendTemplateSMS.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">SendTemplateSMSResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.SendTemplateSMSResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">TestTemplate");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.TestTemplate.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
qName = new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">TestTemplateResponse");
|
||||
cachedSerQNames.add(qName);
|
||||
cls = net.lab1024.smartadmin.module.system.royalcanin.SMS.TestTemplateResponse.class;
|
||||
cachedSerClasses.add(cls);
|
||||
cachedSerFactories.add(beansf);
|
||||
cachedDeserFactories.add(beandf);
|
||||
|
||||
}
|
||||
|
||||
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
|
||||
try {
|
||||
org.apache.axis.client.Call _call = super._createCall();
|
||||
if (super.maintainSessionSet) {
|
||||
_call.setMaintainSession(super.maintainSession);
|
||||
}
|
||||
if (super.cachedUsername != null) {
|
||||
_call.setUsername(super.cachedUsername);
|
||||
}
|
||||
if (super.cachedPassword != null) {
|
||||
_call.setPassword(super.cachedPassword);
|
||||
}
|
||||
if (super.cachedEndpoint != null) {
|
||||
_call.setTargetEndpointAddress(super.cachedEndpoint);
|
||||
}
|
||||
if (super.cachedTimeout != null) {
|
||||
_call.setTimeout(super.cachedTimeout);
|
||||
}
|
||||
if (super.cachedPortName != null) {
|
||||
_call.setPortName(super.cachedPortName);
|
||||
}
|
||||
java.util.Enumeration keys = super.cachedProperties.keys();
|
||||
while (keys.hasMoreElements()) {
|
||||
java.lang.String key = (java.lang.String) keys.nextElement();
|
||||
_call.setProperty(key, super.cachedProperties.get(key));
|
||||
}
|
||||
// All the type mapping information is registered
|
||||
// when the first call is made.
|
||||
// The type mapping information is actually registered in
|
||||
// the TypeMappingRegistry of the service, which
|
||||
// is the reason why registration is only needed for the first call.
|
||||
synchronized (this) {
|
||||
if (firstCall()) {
|
||||
// must set encoding style before registering serializers
|
||||
_call.setEncodingStyle(null);
|
||||
for (int i = 0; i < cachedSerFactories.size(); ++i) {
|
||||
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
|
||||
javax.xml.namespace.QName qName =
|
||||
(javax.xml.namespace.QName) cachedSerQNames.get(i);
|
||||
java.lang.Object x = cachedSerFactories.get(i);
|
||||
if (x instanceof Class) {
|
||||
java.lang.Class sf = (java.lang.Class)
|
||||
cachedSerFactories.get(i);
|
||||
java.lang.Class df = (java.lang.Class)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
|
||||
org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
|
||||
cachedSerFactories.get(i);
|
||||
org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
|
||||
cachedDeserFactories.get(i);
|
||||
_call.registerTypeMapping(cls, qName, sf, df, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return _call;
|
||||
}
|
||||
catch (java.lang.Throwable _t) {
|
||||
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String sendSMS(java.lang.String mobile, int formatID, java.lang.String content, java.util.Calendar scheduleDate, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[0]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/SendSMS");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendSMS"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {mobile, new java.lang.Integer(formatID), content, scheduleDate, tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String sendBatchSMS(java.lang.String mobileList, int formatID, java.lang.String content, java.util.Calendar deadLineTime, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[1]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/SendBatchSMS");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendBatchSMS"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {mobileList, new java.lang.Integer(formatID), content, deadLineTime, tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String sendSMSCovey(java.lang.String XMLStr, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[2]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/SendSMSCovey");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendSMSCovey"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {XMLStr, tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult querySMSState(java.lang.String messageID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[3]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/QuerySMSState");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySMSState"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {messageID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult) org.apache.axis.utils.JavaUtils.convert(_resp, net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult querySmsSendRecord(java.util.Calendar time, int minID, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[4]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/QuerySmsSendRecord");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSendRecord"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {time, new java.lang.Integer(minID), tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult) org.apache.axis.utils.JavaUtils.convert(_resp, net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String canelSMS(java.lang.String messageID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[5]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/CanelSMS");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "CanelSMS"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {messageID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult querySMSUP(int minID, int count, java.lang.String tokenID, java.lang.String externCode) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[6]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/QuerySMSUP");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySMSUP"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(minID), new java.lang.Integer(count), tokenID, externCode});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult) org.apache.axis.utils.JavaUtils.convert(_resp, net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult querySmsSeqReport(long minID, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[7]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/QuerySmsSeqReport");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "QuerySmsSeqReport"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Long(minID), tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult) org.apache.axis.utils.JavaUtils.convert(_resp, net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String testTemplate(int templateId, java.lang.String paramType, java.lang.String paramData, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[8]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/TestTemplate");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TestTemplate"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(templateId), paramType, paramData, tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
public java.lang.String sendTemplateSMS(java.lang.String mobile, int formatID, int templateId, java.lang.String paramType, java.lang.String paramData, java.lang.String tokenID) throws java.rmi.RemoteException {
|
||||
if (super.cachedEndpoint == null) {
|
||||
throw new org.apache.axis.NoEndPointException();
|
||||
}
|
||||
org.apache.axis.client.Call _call = createCall();
|
||||
_call.setOperation(_operations[9]);
|
||||
_call.setUseSOAPAction(true);
|
||||
_call.setSOAPActionURI("http://mms.wemediacn.com/SendTemplateSMS");
|
||||
_call.setEncodingStyle(null);
|
||||
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
|
||||
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
|
||||
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
|
||||
_call.setOperationName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendTemplateSMS"));
|
||||
|
||||
setRequestHeaders(_call);
|
||||
setAttachments(_call);
|
||||
try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {mobile, new java.lang.Integer(formatID), new java.lang.Integer(templateId), paramType, paramData, tokenID});
|
||||
|
||||
if (_resp instanceof java.rmi.RemoteException) {
|
||||
throw (java.rmi.RemoteException)_resp;
|
||||
}
|
||||
else {
|
||||
extractAttachments(_call);
|
||||
try {
|
||||
return (java.lang.String) _resp;
|
||||
} catch (java.lang.Exception _exception) {
|
||||
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
|
||||
}
|
||||
}
|
||||
} catch (org.apache.axis.AxisFault axisFaultException) {
|
||||
throw axisFaultException;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
/**
|
||||
* SMSServiceSoap_PortType.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public interface SMSServiceSoap_PortType extends java.rmi.Remote {
|
||||
|
||||
/**
|
||||
* 功能:发送短信;<br/>参数说明:<br/>mobile:手机号;<br/>FormatID:短信格式(0:英文;8:中文;10:中文白名单确认短信;40:长短信);<br/>Content:短信内容;<br/>ScheduleDate:计划发送时间(可以传以前日期如2010-1-1,立即发送);<br/>TokenID:企业验证码<br/>返回值:<br/>OK:[MessageID]<br/>ERROR:XXX:[错误描述](XXX是错误代码)<br/>100:不正确的Token;<br/>101:没有短信权限;<br/>102:余额不足;<br/>103:短信内容不能为空;<br/>200:非手机号;<br/>999:系统错误;<br/>
|
||||
*/
|
||||
public java.lang.String sendSMS(java.lang.String mobile, int formatID, java.lang.String content, java.util.Calendar scheduleDate, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:发送批次短信;<br/>参数说明:<br/>mobileList:手机号,用半角逗号分隔;<br/>FormatID:短信格式(0:英文;8:中文);<br/>Content:短信内容;<br/>deadLineTime:发送截至时间;<br/>TokenID:企业验证码<br/>返回值:<br/>OK:[MessageID]<br/>ERROR:XXX:[错误描述](XXX是错误代码)<br/>100:不正确的Token;<br/>101:没有短信权限;<br/>102:余额不足;<br/>103:短信内容不能为空;<br/>200:非手机号;<br/>999:系统错误;<br/>
|
||||
*/
|
||||
public java.lang.String sendBatchSMS(java.lang.String mobileList, int formatID, java.lang.String content, java.util.Calendar deadLineTime, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:群发送短信;<br/>参数说明:<br/>ContentXml:XML数据集:mobile:手机号,FormatID:短信格式(0:英文;8:中文),Content:短信内容,ScheduleDate:计划发送时间(可以传空值null,立即发送);<br/>TokenID:企业验证码<br/>返回值:<br/>返回成功发送数量
|
||||
*/
|
||||
public java.lang.String sendSMSCovey(java.lang.String XMLStr, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:根据MessageID查询短信发送状态<br/><font color='#ff0000'>注意:目前此方法不建议使用,
|
||||
* 未来可能删除</font><br/>参数:<br/>MessageID:成功调用SendSMS发送短信时返回的值<br/>返回值:XML
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSStateResponseQuerySMSStateResult querySMSState(java.lang.String messageID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:批量查询某一天短信发送结果<br/><font color='#ff0000'>注意:目前此方法不建议使用, 未来可能删除</font><br/>参数:<br/>time:发送时间;<br/>MinID:开始的ID号(第一次查询输入0,
|
||||
* 以后输入上次查询有结果返回的最大值, 增量查询模式);<br/>TokenID:企业验证码
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSendRecordResponseQuerySmsSendRecordResult querySmsSendRecord(java.util.Calendar time, int minID, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:根据MessageID撤消短信发送<br/><font color='#ff0000'>注意:目前此方法不可用</font><br/>参数:<br/>MessageID:成功调用SendSMS发送短信时返回的值<br/>返回值:OK:[Count];<br/>ERROR:XXX:[错误描述]<br/>999:系统错误
|
||||
*/
|
||||
public java.lang.String canelSMS(java.lang.String messageID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:查询上行短信<br/>参数说明:<br/>MinID:开始的ID号(第一次查询输入0, 以后输入上次查询有结果返回的最大值,
|
||||
* 增量查询模式);<br/>Count:返回行数(目前此参数没用, 最多返回100行记录);<br/>TokenID:企业验证码;<br/>ExternCode:端号号标识(目前此参数没用);<br/>返回值:xml
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySMSUPResponseQuerySMSUPResult querySMSUP(int minID, int count, java.lang.String tokenID, java.lang.String externCode) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:批量查询最新短信发送结果<br/>参数:<br/>MinID:开始的ID号(第一次查询输入0, 以后输入上次查询有结果返回的最大值,
|
||||
* 增量查询模式);<br/>TokenID:企业验证码
|
||||
*/
|
||||
public net.lab1024.smartadmin.module.system.royalcanin.SMS.QuerySmsSeqReportResponseQuerySmsSeqReportResult querySmsSeqReport(long minID, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:测试模板和参数匹配合并后的结果;<br/>参数说明:<br/>templateId:短信模板ID;<br/>paramType:模板参数数据类型(JSON
|
||||
* or XML)<br/>paramData:模板参数数据<br/>TokenID:企业验证码<br/>返回值:<br/>参数匹配后的短信<br/>ERROR:XXX:[错误描述](XXX是错误代码)<br/>100:不正确的Token;<br/>110:[没有找到短信模板];<br/>111:[paramType
|
||||
* 必须是JSON 或 XML];<br/>112:[paramData 解析失败];<br/>999:系统错误;<br/>
|
||||
*/
|
||||
public java.lang.String testTemplate(int templateId, java.lang.String paramType, java.lang.String paramData, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
|
||||
/**
|
||||
* 功能:发送短信;<br/>参数说明:<br/>mobile:手机号;<br/>FormatID:短信格式(0:英文;8:中文;);<br/>templateId:短信模板ID;<br/>paramType:模板参数数据类型(JSON
|
||||
* or XML)<br/>paramData:模板参数数据<br/>TokenID:企业验证码<br/>返回值:<br/>OK:[MessageID]<br/>ERROR:XXX:[错误描述](XXX是错误代码)<br/>100:不正确的Token;<br/>101:没有短信权限;<br/>102:余额不足;<br/>110:[没有找到短信模板];<br/>111:[paramType
|
||||
* 必须是JSON 或 XML];<br/>112:[paramData 解析失败];<br/>200:非手机号;<br/>999:系统错误;<br/>
|
||||
*/
|
||||
public java.lang.String sendTemplateSMS(java.lang.String mobile, int formatID, int templateId, java.lang.String paramType, java.lang.String paramData, java.lang.String tokenID) throws java.rmi.RemoteException;
|
||||
}
|
@ -0,0 +1,295 @@
|
||||
/**
|
||||
* SendTemplateSMS.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class SendTemplateSMS implements java.io.Serializable {
|
||||
private java.lang.String mobile;
|
||||
|
||||
private int formatID;
|
||||
|
||||
private int templateId;
|
||||
|
||||
private java.lang.String paramType;
|
||||
|
||||
private java.lang.String paramData;
|
||||
|
||||
private java.lang.String tokenID;
|
||||
|
||||
public SendTemplateSMS() {
|
||||
}
|
||||
|
||||
public SendTemplateSMS(
|
||||
java.lang.String mobile,
|
||||
int formatID,
|
||||
int templateId,
|
||||
java.lang.String paramType,
|
||||
java.lang.String paramData,
|
||||
java.lang.String tokenID) {
|
||||
this.mobile = mobile;
|
||||
this.formatID = formatID;
|
||||
this.templateId = templateId;
|
||||
this.paramType = paramType;
|
||||
this.paramData = paramData;
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the mobile value for this SendTemplateSMS.
|
||||
*
|
||||
* @return mobile
|
||||
*/
|
||||
public java.lang.String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the mobile value for this SendTemplateSMS.
|
||||
*
|
||||
* @param mobile
|
||||
*/
|
||||
public void setMobile(java.lang.String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the formatID value for this SendTemplateSMS.
|
||||
*
|
||||
* @return formatID
|
||||
*/
|
||||
public int getFormatID() {
|
||||
return formatID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the formatID value for this SendTemplateSMS.
|
||||
*
|
||||
* @param formatID
|
||||
*/
|
||||
public void setFormatID(int formatID) {
|
||||
this.formatID = formatID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the templateId value for this SendTemplateSMS.
|
||||
*
|
||||
* @return templateId
|
||||
*/
|
||||
public int getTemplateId() {
|
||||
return templateId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the templateId value for this SendTemplateSMS.
|
||||
*
|
||||
* @param templateId
|
||||
*/
|
||||
public void setTemplateId(int templateId) {
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the paramType value for this SendTemplateSMS.
|
||||
*
|
||||
* @return paramType
|
||||
*/
|
||||
public java.lang.String getParamType() {
|
||||
return paramType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the paramType value for this SendTemplateSMS.
|
||||
*
|
||||
* @param paramType
|
||||
*/
|
||||
public void setParamType(java.lang.String paramType) {
|
||||
this.paramType = paramType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the paramData value for this SendTemplateSMS.
|
||||
*
|
||||
* @return paramData
|
||||
*/
|
||||
public java.lang.String getParamData() {
|
||||
return paramData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the paramData value for this SendTemplateSMS.
|
||||
*
|
||||
* @param paramData
|
||||
*/
|
||||
public void setParamData(java.lang.String paramData) {
|
||||
this.paramData = paramData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the tokenID value for this SendTemplateSMS.
|
||||
*
|
||||
* @return tokenID
|
||||
*/
|
||||
public java.lang.String getTokenID() {
|
||||
return tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the tokenID value for this SendTemplateSMS.
|
||||
*
|
||||
* @param tokenID
|
||||
*/
|
||||
public void setTokenID(java.lang.String tokenID) {
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof SendTemplateSMS)) return false;
|
||||
SendTemplateSMS other = (SendTemplateSMS) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.mobile==null && other.getMobile()==null) ||
|
||||
(this.mobile!=null &&
|
||||
this.mobile.equals(other.getMobile()))) &&
|
||||
this.formatID == other.getFormatID() &&
|
||||
this.templateId == other.getTemplateId() &&
|
||||
((this.paramType==null && other.getParamType()==null) ||
|
||||
(this.paramType!=null &&
|
||||
this.paramType.equals(other.getParamType()))) &&
|
||||
((this.paramData==null && other.getParamData()==null) ||
|
||||
(this.paramData!=null &&
|
||||
this.paramData.equals(other.getParamData()))) &&
|
||||
((this.tokenID==null && other.getTokenID()==null) ||
|
||||
(this.tokenID!=null &&
|
||||
this.tokenID.equals(other.getTokenID())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getMobile() != null) {
|
||||
_hashCode += getMobile().hashCode();
|
||||
}
|
||||
_hashCode += getFormatID();
|
||||
_hashCode += getTemplateId();
|
||||
if (getParamType() != null) {
|
||||
_hashCode += getParamType().hashCode();
|
||||
}
|
||||
if (getParamData() != null) {
|
||||
_hashCode += getParamData().hashCode();
|
||||
}
|
||||
if (getTokenID() != null) {
|
||||
_hashCode += getTokenID().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(SendTemplateSMS.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">SendTemplateSMS"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("mobile");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "mobile"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("formatID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "FormatID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("templateId");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "templateId"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("paramType");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramType"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("paramData");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramData"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("tokenID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* SendTemplateSMSResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class SendTemplateSMSResponse implements java.io.Serializable {
|
||||
private java.lang.String sendTemplateSMSResult;
|
||||
|
||||
public SendTemplateSMSResponse() {
|
||||
}
|
||||
|
||||
public SendTemplateSMSResponse(
|
||||
java.lang.String sendTemplateSMSResult) {
|
||||
this.sendTemplateSMSResult = sendTemplateSMSResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the sendTemplateSMSResult value for this SendTemplateSMSResponse.
|
||||
*
|
||||
* @return sendTemplateSMSResult
|
||||
*/
|
||||
public java.lang.String getSendTemplateSMSResult() {
|
||||
return sendTemplateSMSResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the sendTemplateSMSResult value for this SendTemplateSMSResponse.
|
||||
*
|
||||
* @param sendTemplateSMSResult
|
||||
*/
|
||||
public void setSendTemplateSMSResult(java.lang.String sendTemplateSMSResult) {
|
||||
this.sendTemplateSMSResult = sendTemplateSMSResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof SendTemplateSMSResponse)) return false;
|
||||
SendTemplateSMSResponse other = (SendTemplateSMSResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.sendTemplateSMSResult==null && other.getSendTemplateSMSResult()==null) ||
|
||||
(this.sendTemplateSMSResult!=null &&
|
||||
this.sendTemplateSMSResult.equals(other.getSendTemplateSMSResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getSendTemplateSMSResult() != null) {
|
||||
_hashCode += getSendTemplateSMSResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(SendTemplateSMSResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">SendTemplateSMSResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("sendTemplateSMSResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "SendTemplateSMSResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
|
||||
public class TestSM {
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
URL protAddres = new URL("http://www.wemediacn.net/webservice/smsservice.asmx");
|
||||
SMSServiceLocator service = new SMSServiceLocator();
|
||||
SMSServiceSoap_BindingStub stub = (SMSServiceSoap_BindingStub) service.getSMSServiceSoap(protAddres);
|
||||
java.util.Calendar cal= java.util.Calendar.getInstance();
|
||||
cal.set(2021,12,31,0,0,0);
|
||||
String sMSGID = stub.sendSMS("13407998521",8,"【皇家宠物食品】",cal,"7101567100151709");
|
||||
if (sMSGID.startsWith("OK:"))
|
||||
System.out.println("Send successful!");
|
||||
System.out.println("msgId = " + sMSGID);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,226 @@
|
||||
/**
|
||||
* TestTemplate.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class TestTemplate implements java.io.Serializable {
|
||||
private int templateId;
|
||||
|
||||
private java.lang.String paramType;
|
||||
|
||||
private java.lang.String paramData;
|
||||
|
||||
private java.lang.String tokenID;
|
||||
|
||||
public TestTemplate() {
|
||||
}
|
||||
|
||||
public TestTemplate(
|
||||
int templateId,
|
||||
java.lang.String paramType,
|
||||
java.lang.String paramData,
|
||||
java.lang.String tokenID) {
|
||||
this.templateId = templateId;
|
||||
this.paramType = paramType;
|
||||
this.paramData = paramData;
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the templateId value for this TestTemplate.
|
||||
*
|
||||
* @return templateId
|
||||
*/
|
||||
public int getTemplateId() {
|
||||
return templateId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the templateId value for this TestTemplate.
|
||||
*
|
||||
* @param templateId
|
||||
*/
|
||||
public void setTemplateId(int templateId) {
|
||||
this.templateId = templateId;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the paramType value for this TestTemplate.
|
||||
*
|
||||
* @return paramType
|
||||
*/
|
||||
public java.lang.String getParamType() {
|
||||
return paramType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the paramType value for this TestTemplate.
|
||||
*
|
||||
* @param paramType
|
||||
*/
|
||||
public void setParamType(java.lang.String paramType) {
|
||||
this.paramType = paramType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the paramData value for this TestTemplate.
|
||||
*
|
||||
* @return paramData
|
||||
*/
|
||||
public java.lang.String getParamData() {
|
||||
return paramData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the paramData value for this TestTemplate.
|
||||
*
|
||||
* @param paramData
|
||||
*/
|
||||
public void setParamData(java.lang.String paramData) {
|
||||
this.paramData = paramData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the tokenID value for this TestTemplate.
|
||||
*
|
||||
* @return tokenID
|
||||
*/
|
||||
public java.lang.String getTokenID() {
|
||||
return tokenID;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the tokenID value for this TestTemplate.
|
||||
*
|
||||
* @param tokenID
|
||||
*/
|
||||
public void setTokenID(java.lang.String tokenID) {
|
||||
this.tokenID = tokenID;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof TestTemplate)) return false;
|
||||
TestTemplate other = (TestTemplate) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
this.templateId == other.getTemplateId() &&
|
||||
((this.paramType==null && other.getParamType()==null) ||
|
||||
(this.paramType!=null &&
|
||||
this.paramType.equals(other.getParamType()))) &&
|
||||
((this.paramData==null && other.getParamData()==null) ||
|
||||
(this.paramData!=null &&
|
||||
this.paramData.equals(other.getParamData()))) &&
|
||||
((this.tokenID==null && other.getTokenID()==null) ||
|
||||
(this.tokenID!=null &&
|
||||
this.tokenID.equals(other.getTokenID())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
_hashCode += getTemplateId();
|
||||
if (getParamType() != null) {
|
||||
_hashCode += getParamType().hashCode();
|
||||
}
|
||||
if (getParamData() != null) {
|
||||
_hashCode += getParamData().hashCode();
|
||||
}
|
||||
if (getTokenID() != null) {
|
||||
_hashCode += getTokenID().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(TestTemplate.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">TestTemplate"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("templateId");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "templateId"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("paramType");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramType"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("paramData");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "paramData"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("tokenID");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TokenID"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,120 @@
|
||||
/**
|
||||
* TestTemplateResponse.java
|
||||
*
|
||||
* This file was auto-generated from WSDL
|
||||
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
||||
*/
|
||||
|
||||
package net.lab1024.smartadmin.module.system.royalcanin.SMS;
|
||||
|
||||
public class TestTemplateResponse implements java.io.Serializable {
|
||||
private java.lang.String testTemplateResult;
|
||||
|
||||
public TestTemplateResponse() {
|
||||
}
|
||||
|
||||
public TestTemplateResponse(
|
||||
java.lang.String testTemplateResult) {
|
||||
this.testTemplateResult = testTemplateResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the testTemplateResult value for this TestTemplateResponse.
|
||||
*
|
||||
* @return testTemplateResult
|
||||
*/
|
||||
public java.lang.String getTestTemplateResult() {
|
||||
return testTemplateResult;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the testTemplateResult value for this TestTemplateResponse.
|
||||
*
|
||||
* @param testTemplateResult
|
||||
*/
|
||||
public void setTestTemplateResult(java.lang.String testTemplateResult) {
|
||||
this.testTemplateResult = testTemplateResult;
|
||||
}
|
||||
|
||||
private java.lang.Object __equalsCalc = null;
|
||||
public synchronized boolean equals(java.lang.Object obj) {
|
||||
if (!(obj instanceof TestTemplateResponse)) return false;
|
||||
TestTemplateResponse other = (TestTemplateResponse) obj;
|
||||
if (obj == null) return false;
|
||||
if (this == obj) return true;
|
||||
if (__equalsCalc != null) {
|
||||
return (__equalsCalc == obj);
|
||||
}
|
||||
__equalsCalc = obj;
|
||||
boolean _equals;
|
||||
_equals = true &&
|
||||
((this.testTemplateResult==null && other.getTestTemplateResult()==null) ||
|
||||
(this.testTemplateResult!=null &&
|
||||
this.testTemplateResult.equals(other.getTestTemplateResult())));
|
||||
__equalsCalc = null;
|
||||
return _equals;
|
||||
}
|
||||
|
||||
private boolean __hashCodeCalc = false;
|
||||
public synchronized int hashCode() {
|
||||
if (__hashCodeCalc) {
|
||||
return 0;
|
||||
}
|
||||
__hashCodeCalc = true;
|
||||
int _hashCode = 1;
|
||||
if (getTestTemplateResult() != null) {
|
||||
_hashCode += getTestTemplateResult().hashCode();
|
||||
}
|
||||
__hashCodeCalc = false;
|
||||
return _hashCode;
|
||||
}
|
||||
|
||||
// Type metadata
|
||||
private static org.apache.axis.description.TypeDesc typeDesc =
|
||||
new org.apache.axis.description.TypeDesc(TestTemplateResponse.class, true);
|
||||
|
||||
static {
|
||||
typeDesc.setXmlType(new javax.xml.namespace.QName("http://mms.wemediacn.com/", ">TestTemplateResponse"));
|
||||
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
||||
elemField.setFieldName("testTemplateResult");
|
||||
elemField.setXmlName(new javax.xml.namespace.QName("http://mms.wemediacn.com/", "TestTemplateResult"));
|
||||
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
||||
elemField.setMinOccurs(0);
|
||||
elemField.setNillable(false);
|
||||
typeDesc.addFieldDesc(elemField);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return type metadata object
|
||||
*/
|
||||
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
||||
return typeDesc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Serializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Serializer getSerializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanSerializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Custom Deserializer
|
||||
*/
|
||||
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
||||
java.lang.String mechType,
|
||||
java.lang.Class _javaType,
|
||||
javax.xml.namespace.QName _xmlType) {
|
||||
return
|
||||
new org.apache.axis.encoding.ser.BeanDeserializer(
|
||||
_javaType, _xmlType, typeDesc);
|
||||
}
|
||||
|
||||
}
|
@ -16,7 +16,6 @@ import net.lab1024.smartadmin.module.system.royalcanin.good.constant.OrderRespon
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.good.model.OrdersEntity;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.good.service.CartService;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.good.service.OrderService;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.AddOrSaveEntity;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.OrderDatilListEntity;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.orderMaster.QueryEntity;
|
||||
import net.lab1024.smartadmin.module.system.wxpay.WxpayService;
|
||||
|
@ -14,6 +14,10 @@ public class OrderResponseCodeConst extends ResponseCodeConst {
|
||||
|
||||
public static final OrderResponseCodeConst CANCEL_FAIL = new OrderResponseCodeConst(9004, "数据删除失败!");
|
||||
|
||||
public static final OrderResponseCodeConst SMS_FAIL = new OrderResponseCodeConst(9005, " 短信校验失败!");
|
||||
|
||||
public static final OrderResponseCodeConst SMS_OVERTIME = new OrderResponseCodeConst(9006, "短信校验超时!");
|
||||
|
||||
public OrderResponseCodeConst(int code, String msg) {
|
||||
super(code, msg);
|
||||
}
|
||||
|
@ -0,0 +1,11 @@
|
||||
package net.lab1024.smartadmin.util;
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.hash.Hashing;
|
||||
|
||||
public class MD5Utils {
|
||||
|
||||
public static String getMD5Code(String content) {
|
||||
return Hashing.md5().newHasher().putString(content, Charsets.UTF_8).hash().toString();
|
||||
}
|
||||
}
|
@ -17,7 +17,6 @@ import java.util.List;
|
||||
import java.util.Properties;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
@Slf4j
|
||||
public class SmartSendMailUtil {
|
||||
|
||||
/**
|
||||
@ -84,7 +83,6 @@ public class SmartSendMailUtil {
|
||||
// 7. 关闭连接
|
||||
transport.close();
|
||||
} catch (Exception e) {
|
||||
log.error("", e);
|
||||
}
|
||||
|
||||
}
|
||||
@ -136,7 +134,6 @@ public class SmartSendMailUtil {
|
||||
transport.sendMessage(message, message.getAllRecipients());
|
||||
// 7. 关闭连接
|
||||
} catch (Exception e) {
|
||||
log.error("", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,26 @@
|
||||
package net.lab1024.smartadmin.util;
|
||||
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceLocator;
|
||||
import net.lab1024.smartadmin.module.system.royalcanin.SMS.SMSServiceSoap_BindingStub;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class SmsUtil {
|
||||
|
||||
public static void sendMsg(String number ,String verifyNumber){
|
||||
try {
|
||||
URL protAddres = new URL("http://www.wemediacn.net/webservice/smsservice.asmx");
|
||||
SMSServiceLocator service = new SMSServiceLocator();
|
||||
SMSServiceSoap_BindingStub stub = (SMSServiceSoap_BindingStub) service.getSMSServiceSoap(protAddres);
|
||||
java.util.Calendar cal= java.util.Calendar.getInstance();
|
||||
cal.set(2021,12,31,0,0,0);
|
||||
String sMSGID = stub.sendSMS(number,8,"您好,您的验证码:" + verifyNumber + ", 5分钟有效期 !【皇家宠物食品】",cal,"7101567100151709");
|
||||
if (sMSGID.startsWith("OK:"))
|
||||
System.out.println("Send successful!");
|
||||
System.out.println("msgId = " + sMSGID);
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user