Tiina Böös
10/01/2025, 8:27 AMCeligo AI
10/01/2025, 8:28 AMAI generated answer (using internal Slack threads):Yes, the charset can be included in the SOAP header Content-Type. The Content-Type header field in HTTP is used to indicate the media type of the resource. In SOAP, the Content-Type can be set to text/xml, application/soap+xml, or any other valid MIME type that can represent an XML payload. The charset parameter can be included in the Content-Type header field to indicate the character encoding used in the message body. For example, a SOAP request could include a header field like this:
Content-Type: text/xml; charset=utf-8. This would indicate that the message body is an XML document and that the character encoding of the XML is UTF-8.
Here is an example of how you can set the Content-Type header in a SuiteScript:
javascript
var _headerObj = {
'Authorization': _token,
'Content-Type': 'text/xml; charset=utf-8'
};
var response = <http://http.post|http.post>({
url: 'target url',
body: xmlString,
headers: _headerObj
});
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
10/01/2025, 8:28 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799499512
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.786865294
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.786865294
Celigo AI
10/01/2025, 8:28 AM