Rich UI Inter-Program Communication - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

Rich UI Inter-Program Communication

Description:

... make sure to Generate your service project Run your service on Tomcat Verify that Tomcat is using port 8080 After copy\pasting the REST Service code into the ... – PowerPoint PPT presentation

Number of Views:22
Avg rating:3.0/5.0
Slides: 5
Provided by: PMichae
Category:

less

Transcript and Presenter's Notes

Title: Rich UI Inter-Program Communication


1
Rich UI Inter-Program Communication
Course
Units
  • Creating an end-to-end RESTful Service

2
? Create an End-to-End EGL Web Service using
REST only
  • From your EGLWeb project
  • Create a new Service part in the
    \EGLSource\services\ folder, named
    RUIRestServices
  • (remember to start Tomcat)
  • Be sure to check
  • ? Create as WEB (REST) service ?
  • Here is the service code
  • You can either code this from scratch, or
    copy/paste this function from the Slide Notes
  • When youve saved and all syntax errors are
    cleaned up
  • From Project Explorer,
  • Generate the entire EGLWeb project
  • This action will also deploy your EGL Rest
    Service to Tomcat

3
? Consume an End-to-End EGL Web Service using
REST only --- Client
  • In the Project Explorer, right-mouse click your
    service and then click on
  • EGL Services
  • Extract Interface
  • In the wizard, select the EGLSource folder in
    the RUI Projecti.e. EGLRichUI
  • Create a new RUI Handler called
    RUIRestServiceTest in the mysamples package
  • Copy the RUI code fromthe Slide Notes
  • All EGL REST services use this pattern
  • http//ltServergtltPortNumbergt/ltProjectNamegt
  • /restservices/ltServiceNamegt
  • Note If you are seeing errors, make sure to
  • Generate your service project
  • Run your service on Tomcat

4
? Create an End-to-End EGLWeb Service using REST
only
After copy\pasting the REST Service code into the
editor, press CTRL S to Save, then select the
preview tab
Note You will have 2 projects A service
project that is deployed on TOMCAT A RUI project
that invokes the service using an interface
Write a Comment
User Comments (0)
About PowerShow.com