Itachi Uchiha
Itachi Uchiha

Reputation: 13

Removing hyphens in form data in DataPower gateway

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--

Upvotes: 0

Views: 151

Answers (1)

Heiko Thei&#223;en
Heiko Thei&#223;en

Reputation: 16718

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).

Upvotes: 0

Related Questions