Following this guide, you can deploy and test the sample project JSON-to-XML transformation in IPS.
If you haven’t already done so,
define a container image with user adroitlogic
, name
ips-worker
and tag 17.07
(you can utilize the Select Existing button on the container image creation page to use
the already defined image from the image repository).
create a cluster using the abovementioned container image.
Navigate to the project creation page.
Click the Select a Sample button and select the JSON-to-XML Transformation sample.
Click Next and wait for IPS to download the sample XPR from the repository, after which you will be automatically navigated to the Configure page.
Click Next again on the Configure page as we do not want to change any of the default project properties.
In the Assign page, select the cluster you have created previously, and click Deploy Now.
You will be directed to the Deployments perspective of the selected cluster, with the new project added automatically to the Pending Updates list.
If you had already deployed a project in the selected cluster, which exposes the same port as the JSON-to-XML
Transformation sample (i.e. 8280 ), the project will not be added to the pending updates list and an error message
indicating the port conflict will be displayed (as two projects in the same deployment cannot bind to the same port).
In that case, you can manually Delete the conflicting project from the Deployed Projects list and use the
Add Project button on the upper right hand corner to select the JsonToXmlTransformation project for deployment.
|
Map an external port (e.g. 30040
) to the exposed
port 8280
of the sample project, using the Configure button.
Click Deploy and wait for the progress bar to indicate successful completion of the deployment.
Find the IP address on the host-only interface of your IPS virtual machine using the ips_installer ip
command
(which would usually be 192.168.99.100
).
As explained in the
sample documentation,
send a POST
request containing a suitable JSON payload to http://192.168.99.100:30040/service/order-service
using
an HTTP client (such as the HTTP/S Client in Ultra Studio Toolbox),
where 192.168.99.100
is the IP address found earlier and 30040
is the external port mapped during project deployment.
A 200 OK
response with no content would be received from the service, indicating that the request has been accepted
and processed successfully.