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

📄 sms_webservicestub.java

📁 注册/发布/查找webservice实例.
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
        java.util.Map returnMap = new java.util.HashMap();
        java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();

        while (namespaceIterator.hasNext()) {
            org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();
            returnMap.put(ns.getPrefix(), ns.getNamespaceURI());
        }

        return returnMap;
    }

    private boolean optimizeContent(javax.xml.namespace.QName opName) {
        if (opNameArray == null) {
            return false;
        }

        for (int i = 0; i < opNameArray.length; i++) {
            if (opName.equals(opNameArray[i])) {
                return true;
            }
        }

        return false;
    }

    private org.apache.axiom.om.OMElement toOM(
        cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            return param.getOMElement(cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS.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.om.OMElement toOM(
        cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMSResponse param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            return param.getOMElement(cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMSResponse.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.om.OMElement toOM(
        cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            return param.getOMElement(cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML.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.om.OMElement toOM(
        cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXMLResponse param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            return param.getOMElement(cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXMLResponse.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.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
            emptyEnvelope.getBody()
                         .addChild(param.getOMElement(
                    cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS.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.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML param,
        boolean optimizeContent) throws org.apache.axis2.AxisFault {
        try {
            org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();
            emptyEnvelope.getBody()
                         .addChild(param.getOMElement(
                    cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML.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.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS.class.equals(
                        type)) {
                return cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMSResponse.class.equals(
                        type)) {
                return cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMSResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML.class.equals(
                        type)) {
                return cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXML.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }

            if (cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXMLResponse.class.equals(
                        type)) {
                return cn.fscn.ica.smswebservice.SMS_WebServiceStub.Send_SMS_InXMLResponse.Factory.parse(param.getXMLStreamReaderWithoutCaching());
            }
        } catch (java.lang.Exception e) {
            throw org.apache.axis2.AxisFault.makeFault(e);
        }

        return null;
    }

    //http://ica.fscn.cn/wsi_AWebservice/sms_webservice.asmx
    public static class ARebackContentToB implements org.apache.axis2.databinding.ADBBean {
        /**
         * field for SMSID
         */
        protected java.lang.String localSMSID;

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

        /**
         * field for BID
         */
        protected java.lang.String localBID;

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

        /**
         * field for VERSION
         */
        protected java.lang.String localVERSION;

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

        /**
         * field for IS_OK
         */
        protected java.lang.String localIS_OK;

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

        /**
         * field for ERRCODE
         */
        protected java.lang.String localERRCODE;

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

        /**
         * field for ERRMSG
         */
        protected java.lang.String localERRMSG;

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

        /* This type was generated from the piece of schema that had
           name = ARebackContentToB
           Namespace URI = http://ica.fscn.cn/SMSWebService
           Namespace Prefix = ns1
         */
        private static java.lang.String generatePrefix(
            java.lang.String namespace) {
            if (namespace.equals("http://ica.fscn.cn/SMSWebService")) {
                return "ns1";
            }

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

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

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

            this.localSMSID = param;
        }

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

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

            this.localBID = param;
        }

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

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

            this.localVERSION = param;
        }

        /**

⌨️ 快捷键说明

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