Change MVSP coding

Character encoding from the tool kit to MVSP/D3 can be changed by using -Dmvsp-encoding flag.

About this task

In some instances, it might be necessary to change the encoding for a specific web-service or web-service/operation/resource.

Encoding might need to change if the default encoding used by the MVSTK is ISO-8859, but there is a web service that needs to support the full UTF-8 encoding. In these cases, you can create the MVSP.ENCODING file in the MVSP account and create an item with the required encoding for each web service or web service/operation.
Note: If you are running from bootstrap batch/shell script, you can add -Dmvsp-encoding=UTF-8 to the Java command line.

Procedure

  1. Access the C:\Program Files\Rocket Software\MVS\server\Tlx.xml file in the Service Arguments section to set the -Dmvsp-encoding flag.
  2. Insert: -a "-Dmvsp-encoding=UTF-8"

    Example

    The following is an example of an orders web service that requires UTF-8 encoding support.

    1. Create an item in the MVSP.ENCODING file with Item-Id orders.

    2. In attribute 1, type UTF-8.

    3. If only a specific web service operation needs to support an alternate encoding, create the item with the Item-Id webservice*operation. For example: catalog*description

    4. Type the encoding in attribute 1:

     :CT MVSP,MVSP.ENCODING, orders catalog*description
     
     orders
     001 UTF-8
     
     catalog*description
     001 UTF-8