+

Search Tips   |   Advanced Search

WS-I Basic Profile

Web Services-Interoperability (WS-I) Basic Profile promote interoperability. WebSphere Application Server conforms to...

Web service components, including messaging, description, discovery, and security, are by specifications...

WS-I Basic Profile...

Available WS-I profiles include...


Universal Transformation Format (UTF)-16 encoding

Uses 16-bit values to store Universal Character Set (UCS) characters. UTF-8 is the most common encoding used on the Internet; UTF-16 encoding is typically used for Java and Windows product applications; and UTF-32 is used by various Linux and UNIX systems. Unlike UTF-8, UTF-16 has issues with big-endian and little-endian, and often involves Byte Order Mark (BOM) to indicate the endian. BOM is mandatory for UTF-16 encoding and it can be used in UTF-8.

Universal Transformation Format (UTF)-16 encoding, required by WS-I Basic Profile, uses 16-bit values to store Universal Character Set (UCS) characters. UTF-8 is the most common encoding used on the Internet; UTF-16 encoding is typically used for Java and Windows product applications; and UTF-32 is used by various Linux and UNIX systems. Unlike UTF-8, UTF-16 has issues with big-endian and little-endian, and often involves Byte Order Mark (BOM) to indicate the endian. BOM is mandatory for UTF-16 encoding and it can be used in UTF-8.

WAS v8.5.5 supports UTF-8 and UTF-16 encoding of SOAP messages.

Bytes Encoding form
EF BB BF UTF-8
FF FE UTF-16, little-endian
FE FF UTF-16, big-endian
00 00 FE FF UTF-32, big-endian
FF FE 00 00 UTF-32, little-endian

BOM is written prior to the XML text, and indicates to the parser how the XML is encoded. The XML declaration contains the encoding, for example:

BOM is used with the encoding to determine how to interpret the XML.

In the example code, 0xFF0xFE represents the byte codes, while the <?xml> declaration is the textual representation.

Support for styleEncoding is not supported in SOAP 1.2. Here is the same example of the SOAP message but without the encoding information:


Related concepts

Differences in SOAP versions
  • Web Services Addressing support
  • Basic Security Profile compliance tips
  • What is new for securing web services
  • Change SOAP message encoding to support WSI-Basic Profile
  • Enable MTOM for JAX-WS web services
  • Web services specifications and APIs