First scenario:
- I will have my backend send a XML request to Apigee. Is there any out of the box functionality that I can leverage to strip all namespaces in the XML and send the raw XML to the end client? Second scenario: - I will have an incoming request from a consumer hit Apigee and then the backend. In this scenario, I would like to inject namespace information into the XML at the Apigee layer before the request hits the backend. Can the above scenarios be achieved in Apigee?
--SF937521--
Solved! Go to Solution.
Hi @Arjav Goswami you can use the Assign Message policy to manipulate the payload, insert the required namespaces before the request gets routed to the back-end target. Here are some additional examples.
You can use an XSLT policy which strips all namespaces. See attached.
For more information, see this stackoverflow question.
@Prithpal Bhogill @Maruti Chand Any Suggestions?
@Arjav Goswami, I would suggest to use the xslt policy.
Hi @Arjav Goswami you can use the Assign Message policy to manipulate the payload, insert the required namespaces before the request gets routed to the back-end target. Here are some additional examples.
Additionally you can also use the XSLT policy as well.
You can use an XSLT policy which strips all namespaces. See attached.
For more information, see this stackoverflow question.