Spring WS Adding Detail to SoapFault Exception Handling

You may also like...

Subscribe
Notify of
guest
7 Comments
Oldest
Newest
Inline Feedbacks
View all comments
BalRanj
BalRanj
March 31, 2017 13:55

Fantastic. Just worked by referring the above steps. Thanks for your efforts.

Anton
Anton
June 22, 2017 15:21

Thanks!

BTW, you can use detail.getResult to marshal fault info into detail element. For example, if you have FaultInfo class generated by JAXB from WSDL, you can use:

if (nonNull(faultInfo)) {
SoapFaultDetail detail = fault.addFaultDetail();
Result result = detail.getResult();
try {
JAXB_CTX.createMarshaller().marshal(faultInfo, result);
} catch (JAXBException e) {
LOGGER.error(“Error serializing [{}] fault info”, ex.getClass().getSimpleName(), e);
}
}

tjm1706
tjm1706
December 23, 2017 18:54

Looks great.
How can I call this from e.g. Chome Widzler? Then I need an URL with a WSDL .

Matias
Matias
May 31, 2018 18:50

How do you customize the fault code?

Chandu
Chandu
November 1, 2018 08:46

Simply excellent!!!

Martinoxs
Martinoxs
October 24, 2019 17:18

Just so many thanks! i try lots of different implementations and nothing works.. until now!

7
0
Would love your thoughts, please comment.x
()
x