The 'Add Service Reference' feature for an ArcGIS Pro add-in does not recognize the classes associated with the service.
上次发布: February 25, 2016ArcGIS Pro SDK for .NET
漏洞 ID 编号
BUG-000094145
已提交
February 11, 2016
上次修改时间
June 11, 2020
适用范围
ArcGIS Pro SDK for .NET
找到的版本
N/A
操作系统
Windows
操作系统版本
7.0 64 Bit
状态
In Review
该问题正在审查中。 审查过程可确保问题包含所有必要信息、易于理解、不与现有问题重复,且为关于漏洞或增强功能的有效请求。 在此阶段,可能会联系您进行说明或提供其他信息。
解决办法
Use 'Add Web Reference' in the Visual Studio project as follows:
1. Right-click the project name in Solution Explorer > Add > Service Reference.
2. In the Add Service Reference dialog box, click 'Advanced...', and click 'Add Web Reference' at the bottom of the Service Reference Settings dialog.
3. Enter the URL, and click the right arrow next to the text box.
4. Click 'Add Reference', and add the reference in the project as:
using ProAppModule1.com.arcgisonline.sampleserver6;
5. In the OnClick event of the button, add:
Census_MapServer test = new Census_MapServer();
int mapcount = test.GetMapCount();