注意::我也在Clearcanvas论坛上问过这个问题,网址是::http://www.clearcanvas.ca/dnn/tabid/69/afv/topic/aff/11/aft/15086/Default.aspx
嗨,我正在用WPF制作我自己的ImageViewer &现在需要用ImageServer加载DICOM文件。我不是使用工作站作为起点,我是使用(ClearCanvas.Dicom.dll)从头开始制作一个查看器。我已经在我的电脑上设置了ImageServer进行测试,可以使用工作站应用程序连接到它,但不能使用我的应用程序(&这就是我的问题)。
当我尝试通过下面的代码连接到ImageServer时,连接超时。我可以使用工作站应用程序连接到我的ImageServer。我不知道如何配置我的连接字符串。
{
EndpointAddress endpoint = new EndpointAddress("http://localhost:104/ClearCanvas/ImageViewer/Automation?wsdl");
StudyRootQueryServiceClient client = new StudyRootQueryServiceClient(binding, endpoint);
client.Open();
}以下是我在工作站中用于连接的设置,那么如何将其转换为连接字符串??
{
Server Name= ImageServer
Host= localhost
AE Title= SERVERAE
Port= 104
}发布于 2011-02-01 01:53:58
这是给其他人的注释/信息::
正如"Steve Wranovsky“所说,看看clearcanvas src中的StarageScp.cs。在那里,您将找到我用来成功地完成从ImageServer检索文件的StorageScp类。首先,确保在ImageServer中的Admin/ configure /Devices下将设备端口配置为106或更高。
然后,这就是如何启动StorageScp类来侦听您的端口。
StorageScp.StorageLocation = @"C:\Users\USER\Downloads\DICOM\ScpTEST";
StorageScp.StartListening("LocalAETitle", 106);
while(!StorageScp.Started) System.Threading.Thread.Sleep(10);记得在关闭你的应用程序时停止监听。
StorageScp.StopListening(106);然后,您只需执行C-Move调用,以便在StorageScp类侦听时接收DICOM文件。
MoveScuBase moveScu = new StudyRootMoveScu("LocalAETitle", "SERVERAE", "localhost", 104, "LocalAETitle");
moveScu.AddStudyInstanceUid(StudyUID);
moveScu.Move();另外,如果你想发送一个文件到ImageServer,看看StorageScu.cs &要使用这个类,可以这样做……
StorageScu scu = new StorageScu();
scu.AddFileToSend(d.FileName);
scu.Send("LocalAETitle", "SERVERAE", "localhost", 104);https://stackoverflow.com/questions/4809667
复制相似问题