About using wado plugins

623 views
Skip to first unread message

poca...@gmail.com

unread,
Mar 23, 2016, 4:49:02 AM3/23/16
to Orthanc Users
Hello,
I was wodering how to using wado plugins. I have my Orthanc Server running got from the Code-Project and I also have the wadoplugin dll file.

I have set the plugin dll like below

"Plugins" : [
"D:\SVN\WADO_RS\OrthancPlugin\OrthancPluginBuild\Debug\WadoPlugin.dll"
],

but it cannot load the plugin in the code below.
I confirmed the path is not there.

static void LoadPlugins(OrthancPlugins& plugins)
{
std::list<std::string> path;
Configuration::GetGlobalListOfStringsParameter(path, "Plugins");
for (std::list<std::string>::const_iterator
it = path.begin(); it != path.end(); ++it)
{
std::string path = Configuration::InterpretStringParameterAsPath(*it);
LOG(WARNING) << "Loading plugin(s) from: " << path;
plugins.GetManager().RegisterPlugin(path);
}
}

any advice please.
Thank you.

Sébastien Jodogne

unread,
Mar 23, 2016, 5:05:02 AM3/23/16
to Orthanc Users, poca...@gmail.com
Hello,

Please check the instructions in the following page:

The "wadoplugin" you refer to is most probably the one that comes from CodeProject, but this sample was merged and improved within the plugin above.

HTH,
Sébastien-

poca...@gmail.com

unread,
Mar 23, 2016, 10:37:36 PM3/23/16
to Orthanc Users, poca...@gmail.com
Hello, I have downloaded and successfuly build the DicomWeb plug-in file.
I have configured the configuration.json file for Orthanc like below.
After I have run my Orthanc and

This one,the explore, works fine.
http://localhost:8042/app/explorer.html

But the wado(below) call doesn't seem to work.
http://localhost:8042/dicom-web/studies/1.3.6.1.4.1.19179.9000000000000.20111007.110546.9000069

Any suggestions please.
Thank you.


// List of paths to the plugins that are to be loaded into this
// instance of Orthanc (e.g. "./libPluginTest.so" for Linux, or
// "./PluginTest.dll" for Windows). These paths can refer to
// folders, in which case they will be scanned non-recursively to
// find shared libraries.
"Plugins" : [
"C:\MY_WADO_RS\OrthancDicomWebBuild\Debug\OrthancDicomWeb.dll"
],

//
//
"DicomWeb" : {
"Enable" : true, // Whether DICOMweb support is enabled
"Root" : "/dicom-web/", // Root URI of the DICOMweb API (for QIDO-RS, STOW-RS and WADO-RS)
"EnableWado" : true, // Whether WADO-URI (aka. WADO) support is enabled
"WadoRoot" : "/wado", // Root URI of the WADO-URI (aka. WADO) API
"Host" : "localhost", // Hard-codes the name of the host for subsequent WADO-RS requests
"Ssl" : false // Whether HTTPS should be used for subsequent WADO-RS requests
}

poca...@gmail.com

unread,
Mar 24, 2016, 2:00:26 AM3/24/16
to Orthanc Users, poca...@gmail.com
2016년 3월 24일 목요일 오전 11시 37분 36초 UTC+9, poca...@gmail.com 님의 말:
> Hello, I have downloaded and successfuly build the DicomWeb plug-in file.
> I have configured the configuration.json file for Orthanc like below.
> After I have run my Orthanc and
>
> This one,the explore, works fine.
> http://localhost:8042/app/explorer.html
>
> But the wado(below) call doesn't seem to work.
> http://localhost:8042/dicom-web/studies/1.3.6.1.4.1.19179.9000000000000.20111007.110546.9000069

ps. Configuration.json setting doesn't seem to work when I run Orthanc server from the source file. so I configured in the code like bewlow.
static void LoadPlugins(OrthancPlugins& plugins)
{
std::list<std::string> path;
path.push_back ("C:\\MY_WADO_RS\\OrthancDicomWebBuild\\Debug\\OrthancDicomWeb.dll");

// Configuration::GetGlobalListOfStringsParameter(path, "Plugins");

for (std::list<std::string>::const_iterator
it = path.begin(); it != path.end(); ++it)
{
std::string path = Configuration::InterpretStringParameterAsPath(*it);
LOG(WARNING) << "Loading plugin(s) from: " << path;
plugins.GetManager().RegisterPlugin(path);
}
}

and the attched image is the result log after I run this program.
It says dicom-web is registered correctly.
log.JPG

Raúl Alexis Betancor Santana

unread,
Mar 24, 2016, 3:33:50 AM3/24/16
to Orthanc Users
Have you read what OrthanC post messages said to you when loading?

it's telling you that the WADO URI will be under /wado ... so your http://localhost:8042/dicom-web/studies/1.3.6.1.4.1.19179.9000000000000.20111007.110546.9000069 its not a valid WADO URI to query OrthanC

poca...@gmail.com

unread,
Mar 24, 2016, 3:40:57 AM3/24/16
to Orthanc Users
I'm testing with DICOMweb REST API which is /dicom-web/.
and plus under /wado doesn't work either.

Sébastien Jodogne

unread,
Mar 24, 2016, 4:21:42 AM3/24/16
to Orthanc Users, poca...@gmail.com
Hello,

I have just setup an Orthanc server with the DICOMweb plugin enabled:

I then uploaded the VIX dataset from OsiriX:

Here is a proper WADO (aka. WADO-URI) request to render one slice of the VIX dataset as a JPEG image:

The "objectUID" corresponds to the "SOPInstanceUID" DICOM tag. Given the Orthanc identifier of an instance from VIX (e.g. "14b4db2c-065edecb-6a767936-7068293a-92fcb080"), the latter tag can be obtained from the "MainDicomTags" field:

Regarding WADO-RS (i.e. DICOMweb RESTful services), here is how to obtain the tags of all the instances stored by Orthanc:

Note that, as the MIME type of this answer is a multipart "application/dicom+xml", a Web browser will not be able to display it. You will have to use either AJAX (JavaScript) or a command-line tool (such as curl).

With WADO-RS, here is how to generate a JPEG preview (through RetrieveFrames):

An user-friendly reference of DICOMweb is available at:

HTH,
Sébastien-

poca...@gmail.com

unread,
Mar 24, 2016, 4:28:44 AM3/24/16
to Orthanc Users, poca...@gmail.com
Thank you!
I appreciate it!
Reply all
Reply to author
Forward
0 new messages