Inheritance: IServiceMessage
Example #1
0
        /// <summary>
        /// Asynchronously calls the BrowseNext service.
        /// </summary>
        public virtual IAsyncResult BeginBrowseNext(BrowseNextMessage 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.BrowseNextRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.BrowseNextRequest, e);
            }
        }
Example #2
0
        /// <summary>
        /// The operation contract for the BrowseNext service.
        /// </summary>
        public virtual BrowseNextResponseMessage BrowseNext(BrowseNextMessage request)
        {
            BrowseNextResponse response = null;

            try
            {
                // OnRequestReceived(message.BrowseNextRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (BrowseNextResponse)BrowseNext(request.BrowseNextRequest);
                // OnResponseSent(response);
                return new BrowseNextResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.BrowseNextRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Example #3
0
 /// <summary>
 /// The operation contract for the BrowseNext service.
 /// </summary>
 public virtual BrowseNextResponseMessage BrowseNext(BrowseNextMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         BrowseNextResponse response = (BrowseNextResponse)BrowseNext(request.BrowseNextRequest);
         return new BrowseNextResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.BrowseNextRequest, e);
     }
 }
Example #4
0
 public BrowseNextResponseMessage BrowseNext(BrowseNextMessage request)
 {
     throw new NotImplementedException();
 }