Feign Soap Exceptions
Open
Nobody has claimed this yet.
feedback provided
- Dominant language
- Java
- Stars
- 9.8k
- Forks
- 1.9k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 41
Description
JAXB by default silently ignores errors.
Can you add this code to throw an exception if something goes wrong.
To SoapEncoder & SoapDecoder
unmarshaller.setEventHandler(
new ValidationEventHandler() {
@Override
public boolean handleEvent(ValidationEvent event ) {
throw new RuntimeException(event.getMessage(),
event.getLinkedException());
}
});
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating SoapEncoder and SoapDecoder and reviewing how each creates its JAXB unmarshaller. Check the existing SOAP encoder/decoder tests, then verify that JAXB validation events are surfaced as exceptions for invalid SOAP data in both paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100