In the Graphical Data Mapping editor, you can use the Add User-Defined function or the Cast function to create a JSONP message, or to transform a message that is modeled in a different message domain into a JSONP message.
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.
To create a JSONP service, complete the following steps:
Deploy and test the message map. For more information, see Troubleshooting a message map.