【发布时间】:2013-08-12 10:13:07
【问题描述】:
您好,我是“SSRS”和网络服务的新手,我正在尝试从 SSRS 报告中调用网络服务。我有一个生成条形码的网络服务。我希望条形码显示在报告中,所以我从 ssrs 调用 Web 服务方法。
方法是
[OperationContract]
Image BarcodeTextToImage(string value);
我正在使用 Web 服务 URL 来调用从 ssrs 上的表达式设置为图像控件的方法,
=Parameters!BarcodeURL.Value +"?value=" + CStr(Parameters!JobNumberFilter.Value)
BarcodeURL 在哪里设置为
http://localhost/barcode/DataMatrix.svc/BarcodeTextToImage
但我没有得到任何输出并收到两个警告,
1) [rsInvalidImageReference] The Value for the image ‘Image3’ is invalid. Details: The remote server returned an error: (400) Bad Request.
2) [rsInvalidExternalImageProperty] The value of the ImageData property for the image ‘Image3’ is “”, which is not a valid ImageData.
现在我尝试更改 Web 服务的配置文件以将其更改为 webHttpBinding 仍然是同样的问题。任何链接和答案都会很棒。
【问题讨论】:
标签: c# web-services reporting-services ssrs-2008 reportingservices-2005