Forum Discussion

ctlarson's avatar
ctlarson
New Contributor II
7 years ago
Solved

API that catches HTTP Post encoded in CXML

I am trying to build an API endpoint that can catch an HTTP Post that is encoded in XML. The error I am getting is:Document input views only accept JSON-encoded data. I understand that there are sn...
  • psathyanarayan's avatar
    psathyanarayan
    7 years ago

    According to my esteemed colleague @akidave, we do allow POST data directly to XML Parser snap through a triggered pipeline which in your case would be the API end point. If your first snap in the pipeline is the XML Parser, you should be able to process it and your pipeline is a triggered pipeline, you should be able to send the XML encoded POST data to this triggered pipeline.