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

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

?? smsnotificationservicestub.java

?? 以向用戶發(fā)送短信的業(yè)務(wù)為例講解客戶端業(yè)務(wù)開(kāi)發(fā)的實(shí)例
?? JAVA
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
/**
 * SmsNotificationServiceStub.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.notification.v2_1.service;


/*
 *  SmsNotificationServiceStub java implementation
 */
public class SmsNotificationServiceStub 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 SmsNotificationServiceStub(
        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 SmsNotificationServiceStub(
        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 SmsNotificationServiceStub(
        org.apache.axis2.context.ConfigurationContext configurationContext)
        throws org.apache.axis2.AxisFault {
        this(configurationContext,
            "http://localhost:9080/SmsNotificationService/services/SmsNotification");
    }

    /**
     * Default Constructor
     */
    public SmsNotificationServiceStub() throws org.apache.axis2.AxisFault {
        this(
            "http://localhost:9080/SmsNotificationService/services/SmsNotification");
    }

    /**
     * Constructor taking the target endpoint
     */
    public SmsNotificationServiceStub(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(
                "SmsNotificationService" + this.hashCode());

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

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

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

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

        _operations[0] = __operation;

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

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

        _operations[1] = __operation;
    }

    //populates the faults
    private void populateFaults() {
    }

    /**
     * Auto generated method signature
     * @see cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationService#notifySmsReception
     * @param notifySmsReception0
     */
    public cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReceptionResponse5 notifySmsReception(
        cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReception4 notifySmsReception0)
        throws java.rmi.RemoteException {
        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()),
                    notifySmsReception0,
                    optimizeContent(
                        new javax.xml.namespace.QName(
                            "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/notification/v2_1/service",
                            "notifySmsReception")));

            //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.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReceptionResponse5.class,
                    getEnvelopeNamespaces(_returnEnv));
            _messageContext.getTransportOut().getSender()
                           .cleanup(_messageContext);

            return (cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReceptionResponse5) 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 });

                        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.notification.v2_1.service.SmsNotificationService#startnotifySmsReception
     * @param notifySmsReception0
     */
    public void startnotifySmsReception(
        cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReception4 notifySmsReception0,
        final cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceCallbackHandler 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()),
                notifySmsReception0,
                optimizeContent(
                    new javax.xml.namespace.QName(
                        "http://www.chinatelecom.com.cn/wsdl/ctcc/sms/notification/v2_1/service",
                        "notifySmsReception")));

        // 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.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReceptionResponse5.class,
                                getEnvelopeNamespaces(resultEnv));
                        callback.receiveResultnotifySmsReception((cn.com.chinatelecom.www.wsdl.ctcc.sms.notification.v2_1.service.SmsNotificationServiceStub.NotifySmsReceptionResponse5) object);
                    } catch (org.apache.axis2.AxisFault e) {
                        callback.receiveErrornotifySmsReception(e);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久噜噜噜久噜久久综合| 亚洲视频狠狠干| 国产拍欧美日韩视频二区| 麻豆精品国产91久久久久久| 色综合 综合色| 亚洲人成小说网站色在线 | 国产精品不卡一区二区三区| 国产精品亚洲一区二区三区在线| 精品国产免费人成在线观看| 久久精品国产色蜜蜜麻豆| 精品国产区一区| 成人av电影在线网| 1024精品合集| 欧美中文字幕久久| 久久99久久久欧美国产| 《视频一区视频二区| 欧美久久久久久久久中文字幕| 777午夜精品免费视频| 蜜臀99久久精品久久久久久软件| 久久人人超碰精品| 色狠狠色狠狠综合| 麻豆91免费观看| 韩日av一区二区| 99久久国产综合精品麻豆| 亚洲大片免费看| 国产农村妇女毛片精品久久麻豆| 成人国产精品免费网站| 青青草国产精品亚洲专区无| 国产精品色哟哟| 91精品欧美综合在线观看最新| 欧美日韩三级视频| 欧美一级理论片| 国产精品美女久久久久aⅴ | www国产成人| 在线精品视频免费播放| 激情综合一区二区三区| 亚洲高清免费在线| 亚洲欧美另类图片小说| 国产二区国产一区在线观看| 婷婷综合久久一区二区三区| 亚洲女性喷水在线观看一区| 国产日本亚洲高清| 国产日产欧美一区二区视频| 欧美肥胖老妇做爰| 香蕉影视欧美成人| 中文字幕一区二区三区在线播放 | 成人精品在线视频观看| 久久精品国产一区二区三区免费看| 亚洲一区二区在线视频| 亚洲人成亚洲人成在线观看图片| 国产精品国产a| 亚洲精品视频在线| 亚洲一二三区在线观看| 亚洲国产精品麻豆| 欧美日韩电影一区| 日韩欧美不卡一区| 久久婷婷成人综合色| 一本一本久久a久久精品综合麻豆| 成人高清免费在线播放| av色综合久久天堂av综合| 91丝袜国产在线播放| 色先锋aa成人| 欧美一区二区网站| 2020国产精品久久精品美国| 日本一区免费视频| 亚洲影院免费观看| 国产乱码精品一品二品| 成人免费在线视频观看| 亚洲与欧洲av电影| 国产在线精品一区二区不卡了| 国产成人a级片| 欧美日韩在线三级| 国产欧美日韩三级| 美腿丝袜亚洲三区| 一本到一区二区三区| 日韩女优制服丝袜电影| 一区二区在线看| 激情久久五月天| 欧美日韩mp4| 国产欧美一区二区在线| 一区二区三区在线免费观看| 91碰在线视频| 91福利在线播放| 日韩精品午夜视频| 欧美午夜精品久久久| 欧美刺激午夜性久久久久久久| 国产精品久久久久影视| 国产精品69久久久久水密桃| 制服丝袜亚洲网站| 香蕉成人伊视频在线观看| 日本道色综合久久| 亚洲欧美中日韩| 91社区在线播放| 亚洲精品一二三四区| 在线一区二区三区四区五区| 日韩伦理免费电影| 亚洲在线免费播放| 91麻豆国产在线观看| 亚洲美女视频在线观看| 91麻豆国产精品久久| 最近中文字幕一区二区三区| 日本成人在线视频网站| 久久精品一区八戒影视| 男女男精品视频| 欧洲av在线精品| 日本欧美韩国一区三区| 另类欧美日韩国产在线| 欧美一级日韩一级| 久久午夜色播影院免费高清| 蜜臀av性久久久久蜜臀av麻豆| 欧美一级欧美三级| 国产福利不卡视频| 一区二区不卡在线播放| 欧美区在线观看| 亚洲制服丝袜在线| 日韩高清中文字幕一区| 精品1区2区在线观看| 国产91对白在线观看九色| 亚洲小少妇裸体bbw| 成人网男人的天堂| 国产专区综合网| 国产视频视频一区| 欧美色精品在线视频| 国产精品主播直播| 国产亚洲一区二区在线观看| 激情国产一区二区| 亚洲精品中文在线| 国产亚洲一区二区三区在线观看| 色综合天天综合| 国产曰批免费观看久久久| 一片黄亚洲嫩模| 亚洲丝袜制服诱惑| 国产日韩一级二级三级| 欧美亚洲免费在线一区| 成人av网站大全| 麻豆精品新av中文字幕| 日韩中文字幕区一区有砖一区| 色婷婷综合五月| 欧美亚洲自拍偷拍| 国产99久久久国产精品潘金| 秋霞午夜鲁丝一区二区老狼| 亚洲免费视频成人| 日本一区二区三区高清不卡| 精品国产91九色蝌蚪| 日韩一区国产二区欧美三区| 欧美午夜不卡在线观看免费| 色激情天天射综合网| 在线观看日韩国产| 91激情在线视频| 欧美日韩午夜精品| 在线91免费看| 欧美v日韩v国产v| 国产网站一区二区三区| 亚洲精品一区二区三区在线观看| 精品免费视频.| 欧美国产一区在线| 日韩一区二区视频| 成人美女在线观看| 色呦呦日韩精品| 欧美日韩精品一区二区三区| 在线亚洲+欧美+日本专区| 欧美日韩精品一区二区三区蜜桃 | 国产精品99久久久久久有的能看 | 另类综合日韩欧美亚洲| 久久99最新地址| 丰满少妇久久久久久久| av网站免费线看精品| 欧美精品少妇一区二区三区| 久久久久久电影| 欧美成人猛片aaaaaaa| 中文字幕欧美日韩一区| 婷婷一区二区三区| 这里是久久伊人| 国产精品久久午夜| 久久国产人妖系列| 欧美日韩一区二区三区在线| 国产亚洲综合色| 另类小说综合欧美亚洲| 色婷婷综合久久久中文字幕| 日韩午夜激情电影| 亚洲综合色自拍一区| 国产高清一区日本| 欧美一级电影网站| 亚洲一区二区在线免费看| fc2成人免费人成在线观看播放 | 国产精品久久久久久久第一福利| 美女一区二区久久| av不卡在线播放| 欧美激情在线一区二区三区| 成人深夜视频在线观看| 国产欧美视频在线观看| 国产麻豆视频精品| 91麻豆精东视频| 亚洲精品欧美激情| 色www精品视频在线观看| 亚洲激情在线播放| 中文字幕欧美激情| av亚洲产国偷v产偷v自拍| 国产精品国产精品国产专区不片| 国产成人啪免费观看软件|