This appendix contains these topics:
To code and deploy your own Web Services
Use the WebServiceBase_v4 and WebServiceBaseImpl_v4 classes to create custom web services.
Both classes exist in the BaseJar.jar file.
Extending one of the base classes (WebServiceBase_v4 and WebServiceBaseImpl_v4) gives you an RPGInvoke and Connection.
Use the RPGInvoke to call an RPG program on the JD Edwards World system.
Use the Connection to access the JD Edwards World database.
Extend WebServiceBase_v4 when creating services that only require executing a JD Edwards World program.
Extend WebServiceBaseImpl_v4 when creating a web service that requires database access.
Refer to the source zip file for examples on how to create web services using the BaseJar.jar file.
The jar files required for the Web Services were configured in the previous procedure by adding the jar files to the World_Services folder and setting the server classpath to include these jars.
In Jdeveloper, the individual projects only need to deploy those files that are required by the web service.
Highlight WebServices(WAR File) and then click Edit.
Figure C-3 Edit WAR Deployment Profile Properties screen
Enter a path where you want your WAR file created.
Figure C-4 Edit WAR Deployment Profile Properties screen
Under Web Files > Filters, select all files.
Figure C-5 Edit WAR Deployment Profile Properties screen
Under WEB-INF/classes, only select the files specific to this service. The files under base are included in the BaseJar.jar, so they do not need to be included here.
Figure C-6 Edit WAR Deployment Profile Properties screen
Under WEB-INF/lib no classes should be selected, these jars are either part of the WLS install or were included in the server classpath in the installation instructions above.