Pour info, on peut aussi passer dans le Context
Context.Values['XMLC_OutputFormat'] := 'SOAP';
Ca renvoie l'exception dans une grappe XML compatible SOAP :
1 2 3 4 5 6 7 8
| <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<SOAP-ENV:faultcode>SOAP-ENV:Server</SOAP-ENV:faultcode>
<SOAP-ENV:faultstring>Component "Test" not found.</SOAP-ENV:faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
Le message d'exception se trouve alors dans /Envelope/Body/Fault/faultstring
Partager