How to use web api method POST in BIRT #1728
-
Hello Team, I am currently exploring the possibility of using the web API POST method with BIRT APIs. Could any one kindly guide me on how to achieve this? For example, I am looking to implement the following code snippet in BIRT using its APIs: var result = ""; const xhr = new XMLHttpRequest(); If you could provide a sample code or any relevant resources, it would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Long story short, you cannot use "xhr"-object because this is an object which comes from the JS-engine from the browser. But yes, it is possible to use REST-apis and here you have to use Java-methods. |
Beta Was this translation helpful? Give feedback.
...here you get my 2 demos, my be this can help you.
The report includes also the references from my used research sources.
Execution of a web-request: REST & response status handling
rest_post_request.zip
Execution of response-parsing "xml-response"
xml_parser_javax.zip