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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:26:17+00:00 2026-05-28T01:26:17+00:00

Instead of this @XmlSeeAlso({User.class,Role.class,Function.class}) I would like something like this: @XmlSeeAlso(Access.getWebServiceClasses()) Is it possible?

  • 0

Instead of this

@XmlSeeAlso({User.class,Role.class,Function.class})

I would like something like this:

@XmlSeeAlso(Access.getWebServiceClasses())

Is it possible?

I want this since my webservice just contains interfaces and if I change the implementation I would just like to change in my factory so it returns the right classes instead of having to change in the webservice itself.

  • 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-28T01:26:18+00:00Added an answer on May 28, 2026 at 1:26 am

    This isn’t possible, since annotation elements must be simple types (strings, primitives or classes (see annotations).

    It is possible however (in CXF) to override org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass() method which, by default checks @XmlSeeAlso of the interface. My implementation returns additional ObjectFactory classes.

    Chances are that you’re using <jaxws:endpoint /> in CXF’s Spring XML configuration. To be able to override this method, you have create few classes:

    1. org.apache.cxf.jaxws.spring.EndpointDefinitionParser must use class derived from org.apache.cxf.jaxws.spring.EndpointDefinitionParser.SpringEndpointImpl (when using JAXWS 2.1) or from org.apache.cxf.jaxws22.spring.JAXWS22SpringEndpointImpl (JAXWS 2.2)
    2. This class must call super.setServiceFactory() passing org.apache.cxf.jaxws.support.JaxWsServerFactoryBean with overriden getExtraClass()
    3. You have to provide your own org.apache.cxf.jaxws.spring.NamespaceHandler (you can create derived class) for your own namespace (e.g. http://cxf.apache.org/jaxws/dynamic) which will register your own parser for jaxws:endpoint element:

      registerBeanDefinitionParser(“endpoint”, new EndpointDefinitionParser());

    (sorry, I can’t provide full example – I’m writing from memory and CXF’s source code)

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

Sidebar

Related Questions

I want to have use something like this: http://localhost/test/dummy instead of this: http://localhost/test/profile.php?id=dummy I
Do you think that C# will support something like ??= operator? Instead of this:
Let's say I have a model class called Project, but instead of this: class
Is it possible to instead of doing this: person.Walking -= person_Walking1; person.Walking -= person_Walking2;
Instead of using an interface like this: public interface IStartable { void Start(); void
Like this question , except T-SQL instead of php. 206275947 = 2062759.47 etc. The
Given a string and a number, this function will produce all possible combinations of
How we can perfectly achieve dropdwn listbox in iphone...And instead for this I want
would this still count as the factory pattern if I would use, instead of
I have a MySQL query that produces this output ordered like this: Instead I'd

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.