亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? receivesmsservicestub.java

?? 以向用戶發(fā)送短信的業(yè)務(wù)為例講解客戶端業(yè)務(wù)開發(fā)的實(shí)例
?? JAVA
?? 第 1 頁 / 共 5 頁
字號(hào):
/**
 * ReceiveSmsServiceStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis2 version: 1.3  Built on : Aug 10, 2007 (04:45:47 LKT)
 */
package cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service;


/*
 *  ReceiveSmsServiceStub java implementation
 */
public class ReceiveSmsServiceStub extends org.apache.axis2.client.Stub {
    protected org.apache.axis2.description.AxisOperation[] _operations;

    //hashmaps to keep the fault mapping
    private java.util.HashMap faultExceptionNameMap = new java.util.HashMap();
    private java.util.HashMap faultExceptionClassNameMap = new java.util.HashMap();
    private java.util.HashMap faultMessageMap = new java.util.HashMap();
    private javax.xml.namespace.QName[] opNameArray = null;

    /**
     *Constructor that takes in a configContext
     */
    public ReceiveSmsServiceStub(
        org.apache.axis2.context.ConfigurationContext configurationContext,
        java.lang.String targetEndpoint) throws org.apache.axis2.AxisFault {
        this(configurationContext, targetEndpoint, false);
    }

    /**
     * Constructor that takes in a configContext  and useseperate listner
     */
    public ReceiveSmsServiceStub(
        org.apache.axis2.context.ConfigurationContext configurationContext,
        java.lang.String targetEndpoint, boolean useSeparateListener)
        throws org.apache.axis2.AxisFault {
        //To populate AxisService
        populateAxisService();
        populateFaults();

        _serviceClient = new org.apache.axis2.client.ServiceClient(configurationContext,
                _service);

        configurationContext = _serviceClient.getServiceContext()
                                             .getConfigurationContext();

        _serviceClient.getOptions()
                      .setTo(new org.apache.axis2.addressing.EndpointReference(
                targetEndpoint));
        _serviceClient.getOptions().setUseSeparateListener(useSeparateListener);
    }

    /**
     * Default Constructor
     */
    public ReceiveSmsServiceStub(
        org.apache.axis2.context.ConfigurationContext configurationContext)
        throws org.apache.axis2.AxisFault {
        this(configurationContext,
            "http://localhost:9080/ReceiveSmsService/services/ReceiveSms");
    }

    /**
     * Default Constructor
     */
    public ReceiveSmsServiceStub() throws org.apache.axis2.AxisFault {
        this("http://localhost:9080/ReceiveSmsService/services/ReceiveSms");
    }

    /**
     * Constructor taking the target endpoint
     */
    public ReceiveSmsServiceStub(java.lang.String targetEndpoint)
        throws org.apache.axis2.AxisFault {
        this(null, targetEndpoint);
    }

    private void populateAxisService() throws org.apache.axis2.AxisFault {
        //creating the Service with a unique name
        _service = new org.apache.axis2.description.AxisService(
                "ReceiveSmsService" + this.hashCode());

        //creating the operations
        org.apache.axis2.description.AxisOperation __operation;

        _operations = new org.apache.axis2.description.AxisOperation[1];

        __operation = new org.apache.axis2.description.OutInAxisOperation();

        __operation.setName(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/receive/v2_1/service",
                "getReceivedSms"));
        _service.addOperation(__operation);

        _operations[0] = __operation;
    }

    //populates the faults
    private void populateFaults() {
        faultExceptionNameMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "PolicyException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.PolicyException");
        faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "PolicyException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.PolicyException");
        faultMessageMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "PolicyException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub$PolicyException1");

        faultExceptionNameMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "ServiceException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ServiceException");
        faultExceptionClassNameMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "ServiceException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ServiceException");
        faultMessageMap.put(new javax.xml.namespace.QName(
                "http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1",
                "ServiceException"),
            "cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub$ServiceException2");
    }

    /**
     * Auto generated method signature
     * @see cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsService#getReceivedSms
     * @param getReceivedSms0
     */
    public cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSmsResponse5 getReceivedSms(
        cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSms4 getReceivedSms0)
        throws java.rmi.RemoteException,
            cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.PolicyException,
            cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ServiceException {
        try {
            org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
            _operationClient.getOptions().setAction("\"\"");
            _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);

            addPropertyToOperationClient(_operationClient,
                org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
                "&");

            // create a message context
            org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();

            // create SOAP envelope with that payload
            org.apache.axiom.soap.SOAPEnvelope env = null;

            env = toEnvelope(getFactory(_operationClient.getOptions()
                                                        .getSoapVersionURI()),
                    getReceivedSms0,
                    optimizeContent(
                        new javax.xml.namespace.QName(
                            "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/receive/v2_1/service",
                            "getReceivedSms")));

            //adding SOAP soap_headers
            _serviceClient.addHeadersToEnvelope(env);
            // set the message context with that soap envelope
            _messageContext.setEnvelope(env);

            // add the message contxt to the operation client
            _operationClient.addMessageContext(_messageContext);

            //execute the operation client
            _operationClient.execute(true);

            org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);
            org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();

            java.lang.Object object = fromOM(_returnEnv.getBody()
                                                       .getFirstElement(),
                    cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSmsResponse5.class,
                    getEnvelopeNamespaces(_returnEnv));
            _messageContext.getTransportOut().getSender()
                           .cleanup(_messageContext);

            return (cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSmsResponse5) object;
        } catch (org.apache.axis2.AxisFault f) {
            org.apache.axiom.om.OMElement faultElt = f.getDetail();

            if (faultElt != null) {
                if (faultExceptionNameMap.containsKey(faultElt.getQName())) {
                    //make the fault by reflection
                    try {
                        java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(faultElt.getQName());
                        java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);
                        java.lang.Exception ex = (java.lang.Exception) exceptionClass.newInstance();

                        //message class
                        java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(faultElt.getQName());
                        java.lang.Class messageClass = java.lang.Class.forName(messageClassName);
                        java.lang.Object messageObject = fromOM(faultElt,
                                messageClass, null);
                        java.lang.reflect.Method m = exceptionClass.getMethod("setFaultMessage",
                                new java.lang.Class[] { messageClass });
                        m.invoke(ex, new java.lang.Object[] { messageObject });

                        if (ex instanceof cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.PolicyException) {
                            throw (cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.PolicyException) ex;
                        }

                        if (ex instanceof cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ServiceException) {
                            throw (cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ServiceException) ex;
                        }

                        throw new java.rmi.RemoteException(ex.getMessage(), ex);
                    } catch (java.lang.ClassCastException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    } catch (java.lang.ClassNotFoundException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    } catch (java.lang.NoSuchMethodException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    } catch (java.lang.reflect.InvocationTargetException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    } catch (java.lang.IllegalAccessException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    } catch (java.lang.InstantiationException e) {
                        // we cannot intantiate the class - throw the original Axis fault
                        throw f;
                    }
                } else {
                    throw f;
                }
            } else {
                throw f;
            }
        }
    }

    /**
     * Auto generated method signature for Asynchronous Invocations
     * @see cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsService#startgetReceivedSms
     * @param getReceivedSms0
     */
    public void startgetReceivedSms(
        cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSms4 getReceivedSms0,
        final cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceCallbackHandler callback)
        throws java.rmi.RemoteException {
        org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());
        _operationClient.getOptions().setAction("\"\"");
        _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);

        addPropertyToOperationClient(_operationClient,
            org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,
            "&");

        // create SOAP envelope with that payload
        org.apache.axiom.soap.SOAPEnvelope env = null;
        org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();

        //Style is Doc.
        env = toEnvelope(getFactory(_operationClient.getOptions()
                                                    .getSoapVersionURI()),
                getReceivedSms0,
                optimizeContent(
                    new javax.xml.namespace.QName(
                        "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/receive/v2_1/service",
                        "getReceivedSms")));

        // adding SOAP soap_headers
        _serviceClient.addHeadersToEnvelope(env);
        // create message context with that soap envelope
        _messageContext.setEnvelope(env);

        // add the message context to the operation client
        _operationClient.addMessageContext(_messageContext);

        _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {
                public void onMessage(
                    org.apache.axis2.context.MessageContext resultContext) {
                    try {
                        org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();

                        java.lang.Object object = fromOM(resultEnv.getBody()
                                                                  .getFirstElement(),
                                cn.com.chinatelecom.www.wsdl.ctcc.sms.receive.v2_1.service.ReceiveSmsServiceStub.GetReceivedSmsResponse5.class,

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91黄视频在线观看| 成人免费毛片app| 精品美女在线观看| 麻豆成人av在线| 亚洲精品国产精品乱码不99| av成人老司机| 亚洲与欧洲av电影| 色综合天天做天天爱| 欧美大片免费久久精品三p | 欧美激情一区二区三区全黄| 成人高清视频在线观看| 一区二区三区欧美激情| 91麻豆精品国产91久久久久久久久| 美脚の诱脚舐め脚责91| 欧美高清一级片在线观看| 色婷婷久久99综合精品jk白丝| 正在播放一区二区| 成人黄色av电影| 久久久精品天堂| 在线观看不卡一区| 国产麻豆视频一区| 亚洲一区二区在线视频| 日韩精品最新网址| 色婷婷综合五月| 国产精品乱人伦一区二区| 欧美在线影院一区二区| 国产乱子伦视频一区二区三区| 一区av在线播放| 国产女人水真多18毛片18精品视频| 在线观看av不卡| 国产盗摄视频一区二区三区| 日本视频一区二区三区| 欧美亚洲一区二区在线| 丁香一区二区三区| 日韩精品欧美成人高清一区二区| 欧美国产日韩精品免费观看| 91精品国产黑色紧身裤美女| 91在线视频免费观看| 国产精品88888| 精品一二三四区| 日本欧美一区二区三区乱码| 亚洲第四色夜色| 亚洲免费观看在线视频| 免费欧美日韩国产三级电影| 久久精子c满五个校花| 色8久久精品久久久久久蜜| 成人av午夜影院| 国精品**一区二区三区在线蜜桃| 亚洲国产日韩精品| 亚洲综合免费观看高清完整版在线| 国产精品情趣视频| 国产精品日韩成人| 中文字幕欧美三区| 欧美精品一区二区三区高清aⅴ | 一本到三区不卡视频| 国产精品欧美极品| 国产精品家庭影院| 一区二区三区中文在线观看| 欧美一区二区视频在线观看2020| 欧美日产国产精品| 欧美精品久久久久久久久老牛影院| 欧美日韩激情一区| 欧美一级片在线| 久久久国产精品不卡| 国产精品污www在线观看| 中文字幕在线不卡一区二区三区| 亚洲欧美在线高清| 亚洲伦理在线免费看| 日韩中文字幕亚洲一区二区va在线| 丝袜亚洲另类欧美综合| 激情综合色综合久久| 高清成人免费视频| 在线精品视频免费播放| 欧美不卡123| 成人免费在线视频| 日韩精品亚洲一区| 成人一区在线看| 日韩一区二区三区电影 | 免费成人在线播放| 成人性色生活片免费看爆迷你毛片| 日韩精品一区第一页| 欧美aa在线视频| 91视频国产资源| 欧美一区二区三区视频在线观看 | 日韩中文字幕不卡| 成人av综合在线| 91.xcao| 精品国产三级电影在线观看| 亚洲欧洲日本在线| 日本成人在线网站| 国产一区二区三区免费播放| 91蜜桃视频在线| 久久久亚洲欧洲日产国码αv| 亚洲乱码中文字幕| 国内精品嫩模私拍在线| 欧美日韩成人综合天天影院| 国产精品无遮挡| 日本欧美一区二区三区乱码| av在线这里只有精品| 精品久久久久一区| 亚洲福利视频一区| 本田岬高潮一区二区三区| 精品不卡在线视频| 五月激情六月综合| av电影天堂一区二区在线| 久久久91精品国产一区二区三区| 天堂va蜜桃一区二区三区漫画版| 成人av影视在线观看| 国产精品全国免费观看高清| 国产一区999| 欧美一区二区三区爱爱| 亚洲国产一二三| 欧美三级电影网站| 精品成人a区在线观看| 国产专区欧美精品| 精品免费99久久| 美女在线观看视频一区二区| 欧美日韩亚洲综合在线| 亚洲综合一区在线| 亚洲欧洲国产日韩| 色88888久久久久久影院野外| 中文字幕一区二区在线播放| 日韩欧美另类在线| k8久久久一区二区三区| 精品国产免费人成电影在线观看四季| 亚洲综合丝袜美腿| 日韩精品自拍偷拍| 国产真实乱偷精品视频免| 久久网站最新地址| 成人免费视频一区二区| 国产精品美女久久久久av爽李琼| 成人午夜免费电影| 亚洲一区二区3| 日韩小视频在线观看专区| 久久电影网站中文字幕| 国产视频一区二区三区在线观看| 亚洲人一二三区| 日韩一区二区三区四区| 国产九色精品成人porny| 国产农村妇女毛片精品久久麻豆 | 国产精品久久久久影院老司| 99re这里都是精品| 日韩av电影免费观看高清完整版| 久久精品国产99| 2019国产精品| 欧美精品免费视频| 国产河南妇女毛片精品久久久| 综合久久综合久久| 欧美一区二区三区免费观看视频| 国产在线精品一区二区三区不卡 | 国产精品国产三级国产| 欧美亚洲国产一区在线观看网站| 亚洲最大成人网4388xx| 国产高清不卡一区| 一区在线观看视频| 精品av综合导航| 欧洲av在线精品| 国产成+人+日韩+欧美+亚洲| 亚洲影视在线播放| 国产欧美日韩精品在线| 91.麻豆视频| 欧美中文字幕久久| 99在线精品观看| 国产成人一级电影| 狠狠久久亚洲欧美| 性欧美大战久久久久久久久| 久久尤物电影视频在线观看| 欧美色综合久久| 成人免费在线播放视频| 日韩欧美高清在线| 在线视频亚洲一区| jiyouzz国产精品久久| 国产成人免费视频网站高清观看视频| 午夜精品福利一区二区三区av| 成人免费一区二区三区在线观看| 2024国产精品| 久久综合999| 中文幕一区二区三区久久蜜桃| 成人性生交大片免费看中文网站| 精品系列免费在线观看| 日本不卡一区二区| 免费观看91视频大全| 国产在线日韩欧美| 狠狠色综合播放一区二区| 麻豆freexxxx性91精品| 极品少妇xxxx精品少妇偷拍| 全国精品久久少妇| 男男视频亚洲欧美| 国产精品美女久久久久久久网站| 国产亚洲精品中文字幕| 日韩欧美资源站| 国产精品欧美一区二区三区| 国产色婷婷亚洲99精品小说| 国产精品私人影院| 1区2区3区欧美| 亚洲国产成人va在线观看天堂| 午夜视频一区在线观看| 老司机一区二区| 国产·精品毛片| 欧美体内she精视频|