res1st
Sep 21st, 2006, 05:57 AM
Hi,
if i use this method to create a fault, i can add a locale element.
soapBody().addClientOrSenderFault(myFault.getMessa ge(), Locale.ENGLISH);
But if i look into Soap1.2 spec, they support multiple reason strings with different languages:
<env:Reason>
<env:Text xml:lang="en-US">Processing error</env:Text>
<env:Text xml:lang="cs">Chyba zpracování</env:Text>
</env:Reason>
<env:Detail>...
But the javadoc of "addClientOrSenderFault" says:
Adding a fault removes the current content of the body.
This would mean, i can't add fault reasons in different languages.
Cheers,
Ingo
if i use this method to create a fault, i can add a locale element.
soapBody().addClientOrSenderFault(myFault.getMessa ge(), Locale.ENGLISH);
But if i look into Soap1.2 spec, they support multiple reason strings with different languages:
<env:Reason>
<env:Text xml:lang="en-US">Processing error</env:Text>
<env:Text xml:lang="cs">Chyba zpracování</env:Text>
</env:Reason>
<env:Detail>...
But the javadoc of "addClientOrSenderFault" says:
Adding a fault removes the current content of the body.
This would mean, i can't add fault reasons in different languages.
Cheers,
Ingo