FAULTDETAIL
| Q | A |
|---|---|
| Bug report? | yes |
| Feature request? | no |
| BC Break report? | no |
| RFC? | no |
Hi,
I wanted to see a problem I have about the Fault class. When a web service returns an object inside the FaultDetail like this:

I have seen that a FaultHandler had been created.
What it does is insert the node as a string when it deserializes it:
[detail:Igm\Synergy\SoapClient\Envelope\SoapEnvelope12\Parts\Fault:private] => <ns3:LinkHotelException xmlns:ns3="http://ws.link.test.hotelresb2b.com/exception"><ns3:errorCode>0221</ns3:errorCode><ns3:language>2</ns3:language><ns3:message>The room with this affiliation does not exist in the system.[asdsadsad]</ns3:message></ns3:LinkHotelException>
Is it possible to emulate the behavior of HeaderPlaceHolder to be able to insert any type of object always inside?
Steps required to reproduce the problem
Expected Result

Actual Result

@victorgp89 maybe dmt-software/jms-soap-serializer can help you with this problem. It throws an exception with the desired information, like a SoapFault would. Or you can check the code to help you create a listener that addresses your problem.