These two downloads include a WebSphere Integration Developer project including all the code of the Advertise sample and the JavaScript client to interact with the process. To import the project into WebSphere Integration Developer, complete the following steps:
Steps for both samples:
The windows PowerShell client can be downloaded here: RestClientPowershell.zip.
These downloads include installable enterprise archives (EAR file) of both the AdvertiseScenario project and the JavaScript client. To install this application on WebSphere Process Server 7.0, refer to the installation instructions provided by the product documentation.
Step for both samples:
Note:
When using the REST API, the client does not have to reside on a WebSphere Process Server. No Java EE elements and no dynamically generated Web pages are required. Thus, it is sufficient to serve
the HTML file for the Basic sample or
the HTML file for the Advanced sample from any other HTTP server.
However, this HTTP server and the involved WebSphere Process Server should reside in the same server domain.
Otherwise, the JavaScript client would attempt cross-site-scripting (execute JavaScript operations to a different server domain) which is considered as
security risk and therefore disallowed in several Web Browser implementations.
Nevertheless, to keep this sample compact, the JavaScript clients are shipped as projects ready to run as well on the WebSphere Process Server.