spring-projects / spring-projects/spring-ws

Allow default payload namespace is be specified on endpoint class [SWS-530]

Open
#656 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for: team-attention status: waiting-for-triage
Dominant language
Java
Stars
346
Forks
323
Avg merge
3d 2h
Merged PRs (30d)
7

Description

Kenny MacLeod opened SWS-530 and commented

Say I have an @Endpoint-annotated class with several @PayloadRoot-annotated methods. Each @PayloadRoot specifies the same namespace. It can start to look messy and cluttered, and is certainly adding redundant boilerplate to the code.

It would be nice if you could specify this namespace once at the class level, either on the @Endpoint annotation , or by allowing @PayloadRoot to be added at the class level, or using a new annotation altogether.


Affects: 1.5.7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing how @Endpoint and @PayloadRoot are processed, then clarify which class-level namespace approach is intended; done means repeated method-level namespaces can be inherited without breaking existing behavior and the new form is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.