laptop and a wrench

不具合

The ConvertWebMapToMapDocument function fails to authenticate via a server connection file for certain service types.

最後に公開された状態: November 13, 2019 ArcGIS GIS Server
不具合 ID 番号 BUG-000126389
送信されましたOctober 29, 2019
最終更新日June 5, 2024
適用対象ArcGIS GIS Server
見つかったバージョン10.6.1
ステータスWill Not Be Addressed

参考情報

It is strongly recommended to move to a ArcGIS Pro based print service.

対処法

For secured services, generate a token to supply within the Web Map json. For example:

def get_token(portal, username, password):

  token_url = '%s/sharing/rest/generateToken/' % portal

  params = {'f': 'json', 'username': username, 'password': password, 'client' : 'referer','referer': portal}

  req = urllib2.Request(token_url, urllib.urlencode(params))

  try:

    response = urllib2.urlopen(req)

  except:

    context = ssl._create_unverified_context()

    response = urllib2.urlopen(req, context=context)

  token = str(json.load(response)['token'])

  return token

username = "siteadmin"

password = "siteadmin"

portal = "https://earl.esri.com/portal"

token = get_token(portal, username, password)

webmap_json = str({"mapOptions":{"showAttribution":False,"extent":{"xmin":-13528474.13135027,"ymin":4075245.077838606,"xmax":-13076884.168241667,"ymax":4219558.18724095,"spatialReference":{"wkid":102100,"latestWkid":3857}},"spatialReference":{"wkid":102100,"latestWkid":3857},"scale":1155581.108577},"operationalLayers":[{"id":"asterPrint_9733","title":"asterPrint_9733","opacity":1,"minScale":0,"maxScale":0,"url":"https://emedina1.esri.com/image/rest/services/asterPrint/ImageServer", "token":token}],"exportOptions":{"outputSize":[746,575],"dpi":96}})

再現の手順

不具合 ID: BUG-000126389

ソフトウェア:

  • ArcGIS GIS Server

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動