Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 522401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:21:00+00:00 2026-05-13T08:21:00+00:00

I am calling a ASP.NET webservice which is marked as one-way. I wrapped the

  • 0

I am calling a ASP.NET webservice which is marked as one-way. I wrapped the code that calls the web service in a try catch block, but it is not catching the exceptions thrown by the web service. when I test the webservice separately by entering the url in the browser, it throws an error, but the exception is not sent to the calling code for some reason. here is the sample code

/// <summary>
/// Summary description for WebService
/// </summary>
[WebService(Namespace = "http://mycompany.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class TestWebService : System.Web.Services.WebService
{
    [SoapDocumentMethod(OneWay = true)]
    [WebMethod(Description="Start a long running process.")]
    public void LongRunningProcess()
    {
        //do some long process
    }
}

//calls proxy class method
TestWebService testWebService = new TestWebService();
testWebService.Timeout = Timeout.Infinite;
testWebService.Credentials = CredentialCache.DefaultCredentials;
testWebService.Url = <url> //the web service url
testWebService.LongRunningProcess()

any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:21:01+00:00Added an answer on May 13, 2026 at 8:21 am

    I don’t believe you can.

    The whole point of stating a method is one way is to mark it as a fire-and-forget, the client does not have to wait for the method to be invoked.

    As soon as the server parsed the request, and often before it actually invokes the method, it returns http 202, at which point the client moves on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which actually calling asp.net web service but when I transfer
I have one ASP.NET Webservice that i calling from my Android app and getting
I'm working on a Asp.Net 3.5 Web Application which requires Async Web service calls.
I have an ASP.NET web service which will create a text file in a
I have created a WCF web service, i am calling it from ASP.NET 1.1
I have a asp.net web-service which I use from my ASP.NET website. I can
In my ASP.net 3.5 application I'm calling an asmx webservice that is part of
I have a asp.NET web service (not WCF but the classic .asmx one with
I am having issues calling an ASP.NET web service in JQuery. I am basically
I have hosted a web service that gets called from an ASP.NET 1.1 by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.