Stores the output of the JSON to XML format conversion. Request or response, determined by where the policy is added to the API proxy flow If the source variable cannot be resolved, or resolves to a non-message type, the policy To request when the policy is attached to a request flow, or response when the policy is attached If is not defined, then it is treated as message (which resolves To application/json, otherwise the policy is not enforced, meaning it is skipped Note: The HTTP Content-type header of the source message must be set The variable, request or response, that contains the JSON message that you want to convert to If you omit this element, the value of the policy's name attribute is Management UI proxy editor with a different, natural-language name. Use in addition to the name attribute to label the policy in the The policy will not beĮnforced even if it remains attached to a flow. Set to true to have flow execution continue even after a policy Set to false to return an error when a policy fails. The management UI proxy editor with a different, natural-language name. Optionally, use the element to label the policy in The value of the name attribute canĬontain letters, numbers, spaces, hyphens, underscores, and periods. The following table describes attributes that are common to all policy parent elements: Attribute EdgeĪutomatically uses the content of this variable as the message for next processing step.įollowing are elements and attributes you can configure on this policy. XML-formatted message that is populated in the request OutputVariable. This configuration takes JSON-formatted request message as the source, and then creates an The policy would be attached to a request Flow (for example, Request / ProxyEndpoint /įor a detailed discussion on converting between JSON and XML, see. To application/json, otherwise the policy is not enforced, meaning it isĪssuming that the intent is to convert a JSON-formatted request into an XML-formatted request, AfterĬonverting a JSON payload to XML, use the XSL Transform policy with a custom style sheet to The policy is particularly useful if you want to transform messages using XSL. Markup language (XML), giving you several options for controlling how messages are converted. This policy converts messages from the JavaScript Object Notation (JSON) format to extensible You're viewing Apigee Edge documentation.
0 Comments
Leave a Reply. |