Once the user is configured, we can use the web service directly from any browser passing the URL parameters (user, timestamp, comment…) as follows :
http://<host>:<port>/myPackage/myService.xsjs?user=TEST×tamp=20170116080000&comment=TEST
3. CONSUMING THE WEB SERVICE FROM A DASHBOARD (SAP DESIGN STUDIO)
In order to call the web service from Design Studio, we still need two components from the our appreciated colleagues in the SAP community:
- Rapid Prototyping (preview comments)
- Read the content of the body of the response
- Build HTML
- Enrich HTML with CSS
- Post Response Parser 2.0 (post and retrieve comments)
- Enable cross-domain request
- Set the URL to match the web service
- Pass the parameters (user and comment) from standard components in Design Studio (input field, text area…)
In order to download these components, please refer to the following blog post “SCN Design Studio 1.6 SDK Components (ver 3.0)” by Mike Howles [2].
3. A REAL-CASE DEVELOPED BY CLARIBA: A COLLABORATIVE CHAT SOLUTION
Once the architecture is implemented with the previous web service, both the web service and the dashboard can be further improved to implement very useful solutions, such as the chat we have implemented at Clariba (see picture bellow):