📄 sendmessageservicestub.java
字号:
}
}
private org.apache.axiom.om.OMElement toOM(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessageResponse5 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
return param.getOMElement(cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessageResponse5.MY_QNAME,
org.apache.axiom.om.OMAbstractFactory.getOMFactory());
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatus7 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody()
.addChild(param.getOMElement(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatus7.MY_QNAME,
factory));
return emptyEnvelope;
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory,
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessage4 param,
boolean optimizeContent) throws org.apache.axis2.AxisFault {
try {
org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
emptyEnvelope.getBody()
.addChild(param.getOMElement(
cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessage4.MY_QNAME,
factory));
return emptyEnvelope;
} catch (org.apache.axis2.databinding.ADBException e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
}
/* methods to provide back word compatibility */
/**
* get the default envelope
*/
private org.apache.axiom.soap.SOAPEnvelope toEnvelope(
org.apache.axiom.soap.SOAPFactory factory) {
return factory.getDefaultEnvelope();
}
private java.lang.Object fromOM(org.apache.axiom.om.OMElement param,
java.lang.Class type, java.util.Map extraNamespaces)
throws org.apache.axis2.AxisFault {
try {
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatus7.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatus7.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatusResponse6.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.GetMessageDeliveryStatusResponse6.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.PolicyException1.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.PolicyException1.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.ServiceException2.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.ServiceException2.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessage4.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessage4.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessageResponse5.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.SendMessageResponse5.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.PolicyException1.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.PolicyException1.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
if (cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.ServiceException2.class.equals(
type)) {
return cn.com.chinatelecom.www.wsdl.ctcc.multimedia_messaging.send.v2_2.service.SendMessageServiceStub.ServiceException2.Factory.parse(param.getXMLStreamReaderWithoutCaching());
}
} catch (java.lang.Exception e) {
throw org.apache.axis2.AxisFault.makeFault(e);
}
return null;
}
//http://localhost:9080/SendMessageService/services/SendMessage
public static class SendMessage implements org.apache.axis2.databinding.ADBBean {
/**
* field for Addresses
* This was an Array!
*/
protected org.apache.axis2.databinding.types.URI[] localAddresses;
/**
* field for SenderAddress
*/
protected java.lang.String localSenderAddress;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localSenderAddressTracker = false;
/**
* field for Subject
*/
protected java.lang.String localSubject;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localSubjectTracker = false;
/**
* field for Priority
*/
protected MessagePriority localPriority;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localPriorityTracker = false;
/**
* field for Charging
*/
protected ChargingInformation localCharging;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localChargingTracker = false;
/**
* field for ReceiptRequest
*/
protected SimpleReference localReceiptRequest;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localReceiptRequestTracker = false;
/* This type was generated from the piece of schema that had
name = sendMessage
Namespace URI = http://www.chinatelecom.com.cn/schema/ctcc/multimedia_messaging/send/v2_2/local
Namespace Prefix = ns3
*/
private static java.lang.String generatePrefix(
java.lang.String namespace) {
if (namespace.equals(
"http://www.chinatelecom.com.cn/schema/ctcc/multimedia_messaging/send/v2_2/local")) {
return "ns3";
}
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
/**
* Auto generated getter method
* @return org.apache.axis2.databinding.types.URI[]
*/
public org.apache.axis2.databinding.types.URI[] getAddresses() {
return localAddresses;
}
/**
* validate the array for Addresses
*/
protected void validateAddresses(
org.apache.axis2.databinding.types.URI[] param) {
if ((param != null) && (param.length < 1)) {
throw new java.lang.RuntimeException();
}
}
/**
* Auto generated setter method
* @param param Addresses
*/
public void setAddresses(org.apache.axis2.databinding.types.URI[] param) {
validateAddresses(param);
this.localAddresses = param;
}
/**
* Auto generated add method for the array for convenience
* @param param org.apache.axis2.databinding.types.URI
*/
public void addAddresses(org.apache.axis2.databinding.types.URI param) {
if (localAddresses == null) {
localAddresses = new org.apache.axis2.databinding.types.URI[] { };
}
java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localAddresses);
list.add(param);
this.localAddresses = (org.apache.axis2.databinding.types.URI[]) list.toArray(new org.apache.axis2.databinding.types.URI[list.size()]);
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getSenderAddress() {
return localSenderAddress;
}
/**
* Auto generated setter method
* @param param SenderAddress
*/
public void setSenderAddress(java.lang.String param) {
if (param != null) {
//update the setting tracker
localSenderAddressTracker = true;
} else {
localSenderAddressTracker = false;
}
this.localSenderAddress = param;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getSubject() {
return localSubject;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -