Written by

Question Yone Moreno · Jan 22, 2024

SOAP Service default encoding

Good morning,

First of all thanks for reading this question.

We have been asked by a client to check if our Soap Service has charset / encoding "UTF-8".

We have been investigating the class "EnsLib.SOAP.InboundAdapter".

We only observe one reference to the charset as "Set tCT=$S(tCST:"binary/CST; charset=UTF-8"

Inside the method: WriteResp

We have read:

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…

https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cl…

https://community.intersystems.com/smartsearch?search=SOAP+web+service+…

https://community.intersystems.com/smartsearch?search=SOAP+web+service+…

We have searched for "SOAP web service default encoding" and "SOAP web service default charset" in the forum, but we have not found information:

Could you please point to us how to check what is the default SOAP Service's encoding?

Thanks for your help.

Product version: IRIS 2020.1

Comments

Alexander Koblov · Jan 22, 2024

Class EnsLib.SOAP.Service inherits from class %SOAP.WebService that has the following parameter:

/// Response is always encoded in UTF-8.
/// Should not be overridden.
Parameter CHARSET As STRING [ Internal ] = "UTF-8";

So the answer is yes. A SOAP Service has UTF-8 as the default charset.

0