skip to main |
skip to sidebar
Just to let you all know that the code in the https://icatproject.googlecode.com/svn/ repository has been reorganised for the following reasons:
1) to include the full icat src tree including tags and branches that were previously missing
2) to include the history of commits that have been recorded thus far in the project

3) to organise some of the documentation so that it can be versioned more easily
4) to separate the Data Portal source code which really belongs in another repository since it is a project in its own right
Please check out a fresh version to avoid any complications.
Best,
Damian
A new project has just been added to the subversion codebase that logs into icat via the ICATAdmin web service, which is secured by http authentication, enabling you to switch to any user and ingest metadata via an xml file into ICAT. You can of course modify the src and invoke calls directly on the ICAT API.
The project can be found in the subversion trunk here:
http://icatproject.googlecode.com/svn/icat3_api/trunk/icat3-xmlingest-client/
Once checked out onto your local machine, you can import the project in Netbeans for example, as shown right:
A couple of configuration issues...
1) The client communicates with the ICAT server over SSL. You must therefore provide the xml-ingest-client with a client certificate for the server that you are to communicate with. As a shortcut, you can copy the [GLASSFISH_HOME]/domains/domain1/cacerts.jks from your ICAT server to [ICAT3-XMLINGEST-CLIENT]/cacerts.jks on your local machine. The location of this file is supplied as one of the Java VM options at runtime as depicted below.

2) You must configure [ICAT3-XMLINGEST-CLIENT]/icatclient.properties with the http auth username and password for your ICAT glassfish server. This is specified, at install time, in the [ICAT_INSTALL_BUNDLE_HOME]/nbproject/glassfish.properties. At runtime you can modify these credentials using the glassfish admin console http://[your-server]:4848 and by navigating to Configuration -> Security -> Realms -> file -> Manage Users.
Additionally, you must provide the ICAT and ICATAdmin wsdl locations so that the client can decipher the web services that are offered by your ICAT server.
Lastly, you must supply two runtime arguments
1) The username that you wish to ingest the metadata as and
2) The location of the xml file that you wish to ingest

That's it!
Cheers,
Damian