Details

    • Type: Sub-task
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Labels:
      None
    • Compatibility:
      Minor
    • Roadmap:
      Not applicable

      Description

      HPCC-9805 adds ECL language support for making HTTP POST calls using JSON or XML.

      The syntax is exactly like SOAPCALL, except new request format specifiers.. JSON or XML.

      HTTPCALL(url,'query', inrec, DATASET(outrec), JSON, XPATH('*/Results', ROWPATH('result_1/Row'), ExcPath('Exception')))

      Notice the "JSON" attribute and also the new modifiers to XPATH.  ROWPATH and EXCPATH allow you to tell HTTPCALL where to find the row of the response and any exceptions.

      Exactly the same for using simple XML (not SOAP) instead of JSON.

      HTTPCALL(url,'query', inrec, DATASET(outrec), JSON, XPATH('*/Results', ROWPATH('result_1/Row'), ExcPath('Exception')))

      The documentation for this form of HTTPCALL can be largely a clone of SOAPCALL in all its forms, but with modifications removing SOAP specific parameters and adding the above mentioned attributes.

       

       

        Attachments

          Activity

            People

            • Assignee:
              jamesdefabia Jim DeFabia
              Reporter:
              afishbeck Anthony Fishbeck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: