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

📄 sendmessageservicestub.java

📁 电信sms接口源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.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.wap_push.send.v1_0.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 */

    /**
     *  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.wap_push.send.v1_0.service.SendMessageServiceStub.SendMessage4.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.SendMessage4.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.SendMessageResponse5.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.SendMessageResponse5.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.PolicyException1.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.PolicyException1.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.ServiceException2.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.ServiceException2.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.GetMessageDeliveryStatus7.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.GetMessageDeliveryStatus7.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.GetMessageDeliveryStatusResponse6.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.GetMessageDeliveryStatusResponse6.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.PolicyException1.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.PolicyException1.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.service.SendMessageServiceStub.ServiceException2.class.equals(
                        type)) {
                return cn.com.chinatelecom.www.wsdl.ctcc.wap_push.send.v1_0.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 ChargingInformation implements org.apache.axis2.databinding.ADBBean {
        /**
         * field for Description
         */
        protected java.lang.String localDescription;

        /**
         * field for Currency
         */
        protected java.lang.String localCurrency;

        /*  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 localCurrencyTracker = false;

        /**
         * field for Amount
         */
        protected java.math.BigDecimal localAmount;

        /*  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 localAmountTracker = false;

        /**
         * field for Code
         */
        protected java.lang.String localCode;

        /*  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 localCodeTracker = false;

        /* This type was generated from the piece of schema that had
           name = ChargingInformation
           Namespace URI = http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1
           Namespace Prefix = ns1
         */
        private static java.lang.String generatePrefix(
            java.lang.String namespace) {
            if (namespace.equals(
                        "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1")) {
                return "ns1";
            }

            return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
        }

        /**
         * Auto generated getter method
         * @return java.lang.String
         */
        public java.lang.String getDescription() {
            return localDescription;
        }

        /**
         * Auto generated setter method
         * @param param Description
         */
        public void setDescription(java.lang.String param) {
            this.localDescription = param;
        }

        /**
         * Auto generated getter method
         * @return java.lang.String
         */
        public java.lang.String getCurrency() {
            return localCurrency;
        }

        /**
         * Auto generated setter method
         * @param param Currency
         */
        public void setCurrency(java.lang.String param) {
            if (param != null) {
                //update the setting tracker
                localCurrencyTracker = true;
            } else {
                localCurrencyTracker = false;
            }

            this.localCurrency = param;
        }

        /**
         * Auto generated getter method
         * @return java.math.BigDecimal
         */
        public java.math.BigDecimal getAmount() {
            return localAmount;
        }

        /**
         * Auto generated setter method
         * @param param Amount
         */
        public void setAmount(java.math.BigDecimal param) {
            if (param != null) {
                //update the setting tracker
                localAmountTracker = true;
            } else {
                localAmountTracker = false;
            }

            this.localAmount = param;
        }

        /**
         * Auto generated getter method
         * @return java.lang.String
         */
        public java.lang.String getCode() {
            return localCode;
        }

        /**
         * Auto generated setter method
         * @param param Code
         */
        public void setCode(java.lang.String param) {
            if (param != null) {
                //update the setting tracker
                localCodeTracker = true;
            } else {
                localCodeTracker = false;
            }

            this.localCode = param;
        }

        /**
         * isReaderMTOMAware
         * @return true if the reader supports MTOM
         */
        public static boolean isReaderMTOMAware(
            javax.xml.stream.XMLStreamReader reader) {
            boolean isReaderMTOMAware = false;

            try {
                isReaderMTOMAware = java.lang.Boolean.TRUE.equals(reader.getProperty(
                            org.apache.axiom.om.OMConstants.IS_DATA_HANDLERS_AWARE));
            } catch (java.lang.IllegalArgumentException e) {
                isReaderMTOMAware = false;
            }

            return isReaderMTOMAware;
        }

        /**
         *
         * @param parentQName
         * @param factory
         * @return org.apache.axiom.om.OMElement
         */
        public org.apache.axiom.om.OMElement getOMElement(
            final javax.xml.namespace.QName parentQName,
            final org.apache.axiom.om.OMFactory factory)
            throws org.apache.axis2.databinding.ADBException {
            org.apache.axiom.om.OMDataSource dataSource = new org.apache.axis2.databinding.ADBDataSource(this,
                    parentQName) {
                    public void serialize(
                        org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
                        throws javax.xml.stream.XMLStreamException {
                        ChargingInformation.this.serialize(parentQName,
                            factory, xmlWriter);
                    }
                };

            return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(parentQName,
                factory, dataSource);
        }

        public void serialize(final javax.xml.namespace.QName parentQName,
            final org.apache.axiom.om.OMFactory factory,
            org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter)
            throws javax.xml.stream.XMLStreamException,
                org.apache.axis2.databinding.ADBException {
            java.lang.String prefix = null;
            java.lang.String namespace = null;

            prefix = parentQName.getPrefix();

⌨️ 快捷键说明

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