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

  • Home
  • SEARCH
  • 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 6590173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:16:00+00:00 2026-05-25T17:16:00+00:00

I am seeing Exception handling in Apache Axis2 Webservices . My Skelton class throws

  • 0

I am seeing Exception handling in Apache Axis2 Webservices .
My Skelton class throws a Userdefined Exception named as “NoUserFound” , which in have configured inside WSDL file

Inside my skelton class

public samples.quickstart.xsd.GetPriceResponse getPrice(
            samples.quickstart.xsd.GetPrice getPrice0)
            throws GetSolutionByIdFault {

        samples.quickstart.xsd.GetPriceResponse response = new samples.quickstart.xsd.GetPriceResponse();
                 response.set_return("Hi");
        String value = (String) getPrice0.getSymbol();
        if (value.equals("Pavan"))
            throw new GetSolutionByIdFault("name not present");
        return response;
}

Inside my client class , i am handling this in this way :

try {
  // Some Logic here 
    }
    catch (AxisFault er) {
    er.getMessage();
    }
    catch (Exception e) {
    e.printStackTrace();
    }

So when ever a user defined exception is thrown for example (GetSolutionByIdFault) , i am handling it in the AxisFault block .

is this the correct approach ??

  • 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-25T17:16:01+00:00Added an answer on May 25, 2026 at 5:16 pm

    It depends on what you have to do in order to handle the exception. If you need to do special things according to the backend exception then you need to catch each and every exception and handle them separately.

    Normally I used to handle exceptions separately.

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

Sidebar

Related Questions

I'm seeing this exception message coming from XslCompiledTransform.Transform(), but after handling the exception the
I have an Asynchronus IHttpHandler in ASP.net and I am seeing this exception error
Seeing as Java doesn't have nullable types, nor does it have a TryParse(), how
Seeing some strange things; help is being solicited. I have a query, like so:
I have a rails rake task which runs just fine. I want this task
When i execute the below code,I am seeing the output as: Finally Exception in
We're seeing this exception occur in the following block of code in an ASP.NET
I'm seeing the following exception in my managed (C#) app calling an unmanaged assembly:
I am seeing a random exception Collection was modified; enumeration may not execute -
After upgrading to NHibernate 3.1 and .Net 4 I am seeing a strange exception

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.