Graphically modeling and transforming a JSONP message in a message map

You can use the Graphical Data Mapping editor to create or transform a JSONP object message or a JSONP array message. You can provide the model of your JSONP message in a JSON schema file in a shared library project. Alternatively, you can define your JSON data by using the Add User Defined function in the map.

About this task

A JSONP service, or Remote JSON service, is a web service that returns JSON data padded with a user-defined JavaScript function call.

When you configure a message map to transform a JSON message, the Graphical Data Mapping editor puts the JSON padding in the top-level Padding element, and the JSON data under the Data element. If JSON padding is detected by an input node, the name of the client-side script is placed in the top-level Padding element.

You can also use the Graphical Data Mapping editor to configure a message flow to provide a JSONP response. When a JSON message is serialized and the top-level Padding element has a value, the JSON message is wrapped in the provided client-side script name.

Procedure

Create or transform your JSONP data by completing one of the following tasks:

What to do next

Deploy and test the message map. For more information, see Troubleshooting a message map.