Does Apigee Edge have a functionality to inject to and strip namespace information from xml?

Not applicable

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 Solved
1 5 142
2 ACCEPTED SOLUTIONS

Former Community Member
Not applicable

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.

View solution in original post

You can use an XSLT policy which strips all namespaces. See attached.

stripnamesapces-xsl.txt

For more information, see this stackoverflow question.

View solution in original post

5 REPLIES 5

Not applicable

@Prithpal Bhogill @Maruti Chand Any Suggestions?

@Arjav Goswami, I would suggest to use the xslt policy.

Former Community Member
Not applicable

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.

Former Community Member
Not applicable

Additionally you can also use the XSLT policy as well.

You can use an XSLT policy which strips all namespaces. See attached.

stripnamesapces-xsl.txt

For more information, see this stackoverflow question.