Capturing incoming request messages

A StringServlet component captures incoming request messages.
Prerequisites: The httpClient palette is open.
  1. Expand IncomingRequests in the palette and add a StringServlet component to your station.
  2. Double-click the StringServlet component in the station.
    The servlet’s AX Property Sheet opens.
    Image
  3. Populate the Servlet Name with a name relevant to your requirements.
    This name becomes the path of the http address to which clients send their requests.
  4. Right-click the servelet component and click Actions > Send.
    The message body of any POST request appears in the Out property of the component.
    Image

    The command used for this example is: curl -k -u username:password -X POST "https://127.0.0.1/temperature" -d '{"getTemp":"Inside"}'

     
    NOTE: The same user authentication used by all other station urls protects the address of the StringServlet. Additionally, the user account used to contact the StringServlet must have Operator Write permission on the StringServlet component.