Removing hyphens in form data in DataPower gateway

120 Views Asked by At

we are trying to pass a file in form data but we are unable to remove the hyphens, Content-Disposition and Content-Type.

----------------------------376203720009485735911622
Content-Disposition: form-data; name=""; filename="Sample.xml"
Content-Type: application/xml

<Root>
<Name> Naruto </Name>
<Occupation> Hokage </Occupation>
</Root>
----------------------------376203720009485735911622--

1

There are 1 best solutions below

1
On

Your file does not contain valid XML. It contains a multipart HTTP payload with one part of type XML, but everything related to the multipart format must be stripped away before you can feed this into an XSLT processor:

  • all lines up to and including the first blank line
  • the last line (starting with hyphens).