goetas-webservices / soap-client

PHP implementation of SOAP 1.1 and 1.2 client specifications
MIT License
175 stars 28 forks source link

FAULTDETAIL #50

Open victorgp89 opened 4 years ago

victorgp89 commented 4 years ago

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:

image

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?