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 7600099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:49:50+00:00 2026-05-30T22:49:50+00:00

Problem Statement: Currently, there are two requirements namely having the correctly populated element in

  • 0

Problem Statement:
Currently, there are two requirements namely having the correctly populated “” element in the SOAP Fault, and as-close-as possible the match between SOAP Request and SOAP Response for pre- and post- migrated CXF web service from Axis Web Service.

For the first need abovementioned, we explored the following options:

  1. We configured custom Interceptor class for CXF that will handle the SOAP Fault as desired. We also modified the method in the service implementation such that the contents for the “ element can be directly set in the Java code. However, we encountered the problem related to the JAXB Context not being able to un-marshal the Java exception correctly into the SOAP Fault
  2. We created two new classes, one as an actual container for the exception as a simple Java bean, and another as its wrapper extending the Java exception class. We used the exception wrapper class in the service implementation for allowing the translation of the application exception into the SOAP Fault. However, we encountered the problem that these classes were not known to the JAXB Context
  3. We tried to use wsdl2java tool to generate various artifacts for JAX-WS and JAXB – we introduced changes to specify the SOAP Fault in the XSD fragment in the available (that is, the legacy from Axis / WebLogic) WSDL, and used the JAXB artifacts, particularly the ObjectFactory and DamageCatalogElementArray classes that handle the JAXB Context. Post this, we encountered the error that the various XML types i.e. their corresponding classes referenced were undefined for the specified namespace
  4. We made the namespaces (QName instances) used in various classes consistent and used another class, package-info to specify the schema mapping with the package structure. At this time, we are receiving the error that the schema conflict in collection for an array of a specific class, DamageCatalogElement in the service implementation method, catalogDamage() as related to the class, DamageCatalogElementArray. This is because the return type of this method in the service implementation is an array of type, DamageCatalogElement whereas when we return the JAXBElement instance in the ObjectFactory, we must use the class, DamageCatalogElementArray

We are using CXF 2.4.2, JDK1.6, JBoss AS 4.2.
Any help or pointers would be much 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-30T22:49:51+00:00Added an answer on May 30, 2026 at 10:49 pm

    Finally we solved the issue.
    The trick was, generating classes using CXF tool wsdl2java by supplying the WSDL of Axis and replacing the JAXB related classes in the legacy code.
    While doing this we need to do some refactoring but that was fine.
    The moment we put the generated classes, everything is working fine. 🙂

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

Sidebar

Related Questions

I am currently having a problem since the DB has been changed. I am
Problem statement: Implement a plug-in system that allows the associated assemblies to be overwritten
Problem Statement: I'm creating a template for multi tiered complicated calculations in MS Excel
Problem statement: It is necessary for me to write a code, whether which before
Here is the problem statement: Calling a setter on the object should result in
I have a problem with a continue statement in my C# Foreach loop. I
I have a problem with the SQL statement detailed below. The query returns the
I have an big problem with an SQL Statement in Oracle. I want to
I got the problem that the if-statement doesn't work. After the first code line
My problem is that I have to set a variable in a try statement

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.