Наследование: IServiceMessage
Пример #1
0
        /// <summary>
        /// Asynchronously calls the DeleteNodes service.
        /// </summary>
        public virtual IAsyncResult BeginDeleteNodes(DeleteNodesMessage message, AsyncCallback callback, object callbackData)
        {
            try
            {
                // check for bad data.
                if (message == null) throw new ArgumentNullException("message");

                // set the request context.
                SetRequestContext(RequestEncoding.Xml);

                // create handler.
                ProcessRequestAsyncResult result = new ProcessRequestAsyncResult(this, callback, callbackData, 0);
                return result.BeginProcessRequest(SecureChannelContext.Current, message.DeleteNodesRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.DeleteNodesRequest, e);
            }
        }
Пример #2
0
        /// <summary>
        /// The operation contract for the DeleteNodes service.
        /// </summary>
        public virtual DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
        {
            DeleteNodesResponse response = null;

            try
            {
                // OnRequestReceived(message.DeleteNodesRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (DeleteNodesResponse)DeleteNodes(request.DeleteNodesRequest);
                // OnResponseSent(response);
                return new DeleteNodesResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.DeleteNodesRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Пример #3
0
 /// <summary>
 /// The operation contract for the DeleteNodes service.
 /// </summary>
 public virtual DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         DeleteNodesResponse response = (DeleteNodesResponse)DeleteNodes(request.DeleteNodesRequest);
         return new DeleteNodesResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.DeleteNodesRequest, e);
     }
 }
Пример #4
0
 public DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
 {
     throw new NotImplementedException();
 }