...
Build a Java Webstart file (.jnlp) for launching Weasis. This file has at least one dynamic parameter (<argument>$dicom:get ... </argument>) that is the reference to the xml file containing the UIDs (This is the second point).
Code Block xml xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN" "http://java.sun.com/dtd/JNLP-6.0.dtd"> <jnlp spec="1.6+" codebase="http://localhost:8080/weasis" href=""> <information> <title>Weasis</title> <vendor>Weasis Team</vendor> <description>DICOM images viewer</description> <description kind="short">An application to visualize and analyze DICOM images.</description> <description kind="one-line">DICOM images viewer</description> <description kind="tooltip">Weasis</description> </information> <security> <all-permissions /> </security> <resources> <!-- Requires Java SE 8 for Weasis 2.5 and superior --> <j2se version="1.8+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="128m" max-heap-size="768m" /> <j2se version="1.8+" initial-heap-size="128m" max-heap-size="768m" /> <jar href="http://localhost:8080/weasis/weasis-launcher.jar" main="true" /> <jar href="http://localhost:8080/weasis/felix.jar" /> <!-- Optional library (Substance Look and feel, only since version 1.0.8). Requires the new Java Plug-in introduced in the Java SE 6 update 10 release.For previous JRE 6, substance.jnlp needs a static codebase URL --> <extension href="http://localhost:8080/weasis/substance.jnlp" /> <!-- Allows to get files in pack200 compression, only since Weasis 1.1.2 --> <property name="jnlp.packEnabled" value="true" /> <!-- ================================================================================================================= --> <!-- Security Workaround. Add prefix "jnlp.weasis" for having a fully trusted application without signing jnlp (only since weasis 1.2.9), http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6653241 --> <!-- Required parameter. Define the location of config.properties (the OSGI configuration and the list of plug-ins to install/start) --> <property name="jnlp.weasis.felix.config.properties" value="http://localhost:8080/weasis/conf/config.properties" /> <!-- Optional parameter. Define the location of ext-config.properties (extend/override config.properties) --> <property name="jnlp.weasis.felix.extended.config.properties" value="http://localhost:8080/weasis-ext/conf/ext-config.properties" /> <!-- Required parameter. Define the code base of Weasis for the JNLP --> <property name="jnlp.weasis.weasis.codebase.url" value="http://localhost:8080/weasis" /> <!-- Optional parameter. Define the code base ext of Weasis for the JNLP --> <property name="jnlp.weasis.weasis.codebase.ext.url" value="http://localhost:8080/weasis-ext" /> <!-- Required parameter. OSGI console parameter --> <property name="jnlp.weasis.gosh.args" value="-sc telnetd -p 17179 start" /> <!-- Optional parameter. Allows to have the Weasis menu bar in the top bar on Mac OS X (works only with the native Aqua look and feel) --> <property name="jnlp.weasis.apple.laf.useScreenMenuBar" value="true" /> <!-- Optional parameter. Allows to get plug-ins translations --> <property name="jnlp.weasis.weasis.i18n" value="http://localhost:8080/weasis-i18n" /> <!-- Optional Weasis Documentation --> <!-- <property name="jnlp.weasis.weasis.help.url" value="${cdb}/../weasis-doc" /> --> <!-- ================================================================================================================= --> </resources> <application-desc main-class="org.weasis.launcher.WebstartLauncher"> <!-- Example for opening dicom files from remote xml file --> <argument>$dicom:get -w "http://localhost:8080/dcm4chee-web/wadoQueries/wado_query3888637380.xml.gz<gz"</argument> <!-- Example for opening dicom files from local foler --> <argument>$dicom:get -l "/home/Images/MRIX LUMBAR/"</argument> <!-- Example for opening dicom files by embedding the xml file encoded in gzip and then in base64, it must be in one line without space at the beginning --> <argument>$dicom:get -i "H4sIAAAAAAAAALVV7Y+aMBz+vr+i6XdLXwDBHHdxpy4mvgX0dvtkOqnaBOGO1qn//RUQnW5uy3JHCC2/1+d5Wsrdw36TgB8iVzJLA0gQhkCkiyyW6SqAW71seBA83H+62/E4m79uR..."</argument> <!-- Example for opening dicom files from URLs --> <argument>$dicom:get -r "http://server/images/img1.dcm http://server/images/img2.dcm<dcm"</argument> </application-desc> </jnlp>
Info title Customize JNLP Replace "http://localhost:8080/weasis" by your server location and "<argument>...</argument>" by your data to load. Adapt other parameters if necessary.
Tip title Web service for building jnlp based on templates weasis-pacs-connector services return jnlp and they allow either to build a manifest from a PACS via DICOM C-Find or to upload the manifest by http POST (http://localhost:8080/weasis-pacs-connector/viewer?upload=manifest).
- Build an XML file containing the UIDs of the images which will be retrieved from Weasis. There is XLS schema to validate the content of xml. This file can be either compressed in gzip or uncompressed. Here is an example (required Weasis 2.5 and superior):
...