Description
Simple command line example which demonstrates creating a project, searching for a project, removing a project, and setting some project properties.
Command Line Example
Below are the instructions for running the example:
- Compile with all the edk jar files on the classpath
- Execute with servlet.jar and all edk jar files on the classpath
- Example command line:
ProjectCommandLineExample -endpoint soap_endpoint -username username -password password options
Type ProjectCommandLineExample with no arguments to get the full usage for create, remove, and search.
Example for create: ProjectCommandLineExample -endpoint http://hostname:8080/ptapi/services/QueryInterfaceAPI -username Administrator -password plumtree -c -n SampleProjectName -d SampleProjectDescription
Example for remove: ProjectCommandLineExample -endpoint http://hostname:8080/ptapi/services/QueryInterfaceAPI -username Administrator -password plumtree -r -id 2408
Example for remove: ProjectCommandLineExample -endpoint http://hostname:8080/ptapi/services/QueryInterfaceAPI -username Administrator -password plumtree -s -q SampleProject
View Code
Jsp Example
Below are the instructions for running the example:
- Create a war file from the WEB-INF directory under devkit
- Add the page below to the root directory of the war file and remove the .txt extension
Deploy in your servlet container, e.g. Tomcat
Project Page
- Create a Remote Server, Portlet Web Service, and portlet, to point to http://your_server/your_war_file/projectExample.jsp
- In the advanced settings page of the Web Service, check the option to send a login token.