B2B Integration 10.4 | Administering and Monitoring B2B Transactions | Service Development Help | Working with Document Types | Creating an IS Document Type | Creating IS Document Types from JSON Objects | Creating an IS Document Type from a JSON Object
 
Creating an IS Document Type from a JSON Object
Perform the following procedure to create an IS document type from a JSON object.
* To create an IS document type from a JSON object
1. In the Service Development perspective, select File > New > Document Type.
2. In the New Document Type dialog box, select the folder in which you want to save the IS document type.
3. In the Element name field, type a name for the IS document type using any combination of letters, numbers, and/or the underscore character. For information about restricted characters, see About Element Names.
4. Click Next.
5. On the Select the Source Type panel, select JSON and click Next.
6. On the Select a Source Location panel, under Source location, select File/URL.
7. Enter the path to and name of the JSON object or click Browse to navigate to and select the source file.
8. Click Next.
9. On the Select Java Wrapper Type panel, under Java wrapper type for real numbers select how Integration Server should map real numbers from the JSON object to fields in the IS document type as follows:
Select
To convert real numbers in the JSON object to...
Double
Double Java wrapper type.
Float
Float Java wrapper type.
Note: The default setting for Java wrapper type for real numbers is set by the watt.server.json.decodeRealAsDouble server configuration parameters. For example, if watt.server.json.decodeRealAsDouble is set to true, Designer displays Double as the default for Java wrapper type for real numbers. You can override this setting by selecting Float.
For more information about the watt.server.json.decodeRealAsDouble server configuration parameter, see webMethods Integration Server Administrator’s Guide.
10. On the Select Java Wrapper Type panel, under Java wrapper type for integers select how Integration Server should map integers from the JSON object to the fields in the IS document type as follows:
Select
To convert integers in the JSON object to...
Long
Long Java wrapper type.
Integer
Integer Java wrapper type.
Note: The default setting for Java wrapper type for integers is set by the watt.server.json.decodeIntegerAsLong server configuration parameter. For example, if watt.server.json.decodeIntegerAsLong is set to true, Designer displays Long as the default for Java wrapper type for integers. You can override this setting by selecting Integer.
For more information about the watt.server.json.decodeIntegerAsLong server configuration parameter, see webMethods Integration Server Administrator’s Guide.
11. Click Finish. Integration Server creates the document type. Designer refreshes the Package Navigator view automatically and displays the new document type.

Copyright © 2016- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release