I am using:
Eclipse Java EE IDE for Web Developers 4.4.1
Java 1.7.0_60
Tomcat 8.0.14
In Eclipse, install:
Eclipse EGit 3.4.2
Eclipse.org – M2e Maven Integration for Eclipse 1.5.1.* org.eclipse.m2e.feature
Eclipse.org – M2e-wtp 1.1.0
APT M2E Connector 0.0.1.3
m2e connector for build-helper-maven-plugin 0.15.0.201207090124
m2e connector for jaxws-maven-plugin 0.0.1.201411151653
Create a home directory for the project, say "rfd". In this directory, create two directories, "eclipse" and "git".
Open Eclipse using the project/eclipse directory (e.g. rfd/eclipse) as the workspace.
File => Import...
In Select dialog tree pane, open General Folde, select Preferences, click Next
In Import Preferences dialog, browse to common.epf, make sure Import all is checked, and click Finish.
Windows => Preferences => General => Workspace:
Build automatically: not checked (can interfere with Maven builds).
Save automatically before build: checked.
Workspace name: Give project a name, helps avoid confusion.
OK.
Using the attached guide, go to Stash, under IHE Test & Management Tools clone the following repositories to your workspace:
Repository | URL |
---|---|
erl-ihe-utilities | https://code.imphub.org/scm/ihe/erl-ihe-utilities.git |
erl-ihe-ws | https://code.imphub.org/scm/ihe/erl-ihe-ws.git |
erl-ihe-rfd | https://code.imphub.org/scm/ihe/erl-ihe-rfd.git |
rfd-web | https://code.imphub.org/scm/ihe/rfd-web.git |
After cloning, right click on one of the project in the Project explorer and select Maven => Update Project... from the context menu. On the Update Maven Project dialog, click “Select All” and then “OK”.
this will create the following projects in your workspace (erl-ihe-utilities has two projects). Build them with maven in the order and with the goals shown.
erl-ihe-utilities clean package install
erl-ihe-web-utilities clean package install
erl-ihe-ws clean package install
erl-ihe-rfd clean generate-sources package install
rfd-web clean package install
File => Refresh
If you want to run in the development profile, you need to add your machine name to the configuration overrides.xml file in
project/git/rfd-web/RFD/src/main/resources/erl-ihe-rfd-resources/runDirectory
this file contains:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<configuration>
<Hosts>
<golden profile="dev"/>
</Hosts>
</configuration>
You need to add an additional element inside <Hosts> like the golden line with your machine name.
Add a tomcat server to the rfd-web project and start it to run, or alternatively, copy the RFD.war file from project/git/rfd-web/RFD/target to the webapps directory of a tomcat instance and run it outside of Eclipse.
The configurations are in the RFDServers.xml. As configured, it does not use postgresql.
I use SoapUI to send test messages, which I set up using the wsdl. My test message:
http://localhost:3301/RFD_0_10000_FM
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:urn="urn:ihe:iti:rfd:2007">
<soap:Header>
<wsa:To>http://localhost:4040/axis2/services/someservice</wsa:To>
<wsa:MessageID>urn:uuid:76A2C3D9BCD3AECFF31217932910053</wsa:MessageID>
<wsa:Action soap:mustUnderstand="1">urn:ihe:iti:2007:RetrieveForm</wsa:Action>
</soap:Header>
<soap:Body>
<urn:RetrieveFormRequest>
<urn:prepopData>
<!--You may enter ANY elements at this point-->
</urn:prepopData>
<urn:workflowData>
<urn:formID>RFD 0-10000</urn:formID>
<urn:encodedResponse>false</urn:encodedResponse>
<urn:context>
<!--You may enter ANY elements at this point-->
</urn:context>
<urn:instanceID></urn:instanceID>
</urn:workflowData>
</urn:RetrieveFormRequest>
</soap:Body>
</soap:Envelope>