Anthony Fishbeck 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
..
EsdlExampleService.java 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
ReadMeFirst.txt 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
RoxieEchoPersonInfo.ecl 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
esdl_binding.xml 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
esdl_example.esdl 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
javarequest.xml 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад
roxierequest.xml 3a360d3d3e HPCC-14246 Allow DynamicESDL service methods to be written in JAVA 9 лет назад

ReadMeFirst.txt

You must have configured an instance of dynamicEsdl in this environment. Either through configmgr or by editing environment.xml. This document assumes dynamicESDL is running on "myesp" port 8088.

Run the following from the node running the eclwatch server:

Make a copy of the /opt/HPCCSystems/examples/EsdlExample folder.

From EsdlExample copy folder:

1. Generate java base classes (and dummy implementation file):
esdl java esdl_example.esdl EsdlExample --version=9

2. Compile java base classes and example service (must have sudo access to place the classes in the default HPCC class location):
sudo javac -g EsdlExampleServiceBase.java -cp /opt/HPCCSystems/classes -d /opt/HPCCSystems/classes/
sudo javac -g EsdlExampleService.java -cp /opt/HPCCSystems/classes -d /opt/HPCCSystems/classes/

3. Generate ecl layouts:
esdl ecl esdl_example.esdl .

4. Publish example roxie query:
ecl publish roxie RoxieEchoPersonInfo.ecl

5. Publish the esdl defined service to dynamicESDL:
esdl publish EsdlExample esdl_example.esdl --version 9 --overwrite

5. Bind both java and roxie implementations to DynamicESDL
esdl bind-service myesp 8088 esdlexample.1 EsdlExample --config esdl_binding.xml --overwrite

6. Test calling the java service:
soapplus -url http://.:8088/EsdlExample -i javarequest.xml

7. Test calling the roxie service:
soapplus -url http://.:8088/EsdlExample -i roxierequest.xml

8. Interact with both services by browsing to:

http://:8088