Welcome Guest! Log in
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Invoking a Stambia REST Web Service asynchronously

    When invoking a Stambia Published Web Service, a session starts on the Runtime and when it ends it returns a response to the client that performed the request.

    There is the possibility to specify, when invoking the Web Service, that it is not necessary to wait the end of the session to hand back to the client request.

    This can be particularly useful when using Web Services to start long sessions.

    Read more: Invoking a Stambia REST Web Service asynchronously

    Investigating a REST webservice invocation issue

      This article is a Work in Progress. Feel free to suggest more content by contacting the support team.

      When working with REST webservices, there are lots of parameter combinations and contexts which may require some rigor and adjustement in order to get the expected behavior from the webservice.

      This article provides some helpful information for analyzing a misfunctionning REST webservice invocation.

      Consulting the request & response contents

      Each webservice invocation consists of a request (sent message) and a response (received message)

       ------------                                -------------
      | Stambia DI |  ----(  Sent message  )--->  |  Webservice |
      |  Runtime   |  <---(Received message)----  |   provider  |
       ------------                                -------------

      The "Integration Rdbms to WSDL" template has two useful parameters for consulting these messages:

      • Sent messages folder: when set to a folder path, the Runtime will create a ".in" file for each request
      • Received messages folder: when set to a folder path, the Runtime will create a ".out" file for each response

       

      Example of a "1484911188176.in" file content

      https://demo.winddle.com/api/v1/recent/productshttps://demo.winddle.com/api/v1/recent/products?scope=company&delta_days=3

      => In this invalid example, we see that the request URL is malformed. Probably the metadata is incorrect (in this example, base URL is repeated in both the Service node and the Operation node).

      Example of a "1484911188176.out" file content

      <html>
        <title>404</title>
      <style>
      [...]

       => This file contains the raw response of the remote webservice provider. In this case the server replied with an HTML 404 response (because the request was invalid).

      Consulting the temporary data file

      When invoking a service, the Runtime writes input data (whatever the format: Json, Xml, raw...) to a temporary XML file.

      You can consult this file by getting its path from the Variable View for the "Call Webservice" action.

      This can be helpful to see how the extracted data looks like.

       

      Articles

      Suggest a new Article!