Jump to content

Recommended Posts

I am trying to call a web service asynchronous in .net 4.0. I mean i don't want any kind of response from service side. I just want to execute a web method.

can you suggest me how i can call?




Service Code:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace UILAYER.Service
    /// <summary>
    /// Summary description for TestService 
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    public class TestService : System.Web.Services.WebService

        int Message = "success||Record has been updated.";

        public object ExecuteProcessRawRunches()
                if (Message.ToLower().StartsWith("success||"))
                    return new { Result = "OK", Records = Message };
                    return new { Result = "ERROR", Records = Message };
            catch (Exception ex)
                return new { Result = "ERROR", Message = ex.Message };
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...