how to run exportwebmap service?

2065
3
08-31-2011 11:09 PM
zhuzheng
New Contributor
i want to do one demo about exportwebmap service. but i always get the error. the attchment is  the error infomation.

the webmap as josn is blow:

{
"mapOptions" : {
"extent" : {
"xmin":2473180.90049606,
"ymin":679774.629817489,
"xmax":2500969.21844998,
"ymax":708732.161710566,
"spatialReference" : {
"wkid" : 2264
}
},
"scale" : 44898,
"spatialReference" : {
"wkid" : 2264
}
},
"operationalLayers" : [
{
"url" : "http://localhost:6080/arcgis/rest/services/Ex3/MapServer",
"title" : "Homeland security operations",
"opacity" : 0.8,
"visibleLayers" : [
0,
1
],
"showSublayerLegends" : [
0
]
}
],
"baseMap" : {
"title" : "My Basemap",
"baseMapLayers" :  [
{
"url" : "http://localhost:6080/arcgis/rest/services/Ex3/MapServer",
}
]
},
"exportOptions": {
"dpi" : 100,
"outputSize" :  [
500,
500
]
}
}

i have tried servel times , but the result is the same. Does everyone meet this problem.
how do you use the exportwebmap service?
thank you very much.
0 Kudos
3 Replies
SrinivasVinnakota
Esri Contributor
Zhu,
Using the JSON request that you posted and making a few changes to point to a service on my server I did not receive any errors. Could you try the below request and post the results?

{
    "mapOptions": {
        "extent": {
            "xmin": -14383517,
            "ymin": 1324871,
            "xmax": -7081003,
            "ymax": 8627386,
            "spatialReference": {
                "wkid": 102100 
            }
        },
        "scale": 69000000,
        "spatialReference": {
            "wkid": 102100 
        }
    },
    "operationalLayers": [ ],
    "baseMap": {
        "title": "My Basemap",
        "baseMapLayers": [
            {
                "url": "http://servicesbeta.esri.com/ArcGIS/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer"
            }
        ]
    },
    "exportOptions": {
        "dpi": 100,
        "outputSize": [
            500,
            500
        ]
    }
}
0 Kudos
zhuzheng
New Contributor
svinnakota, thanks for your response.
i copied your json code to the web_map_as_json,then run the excute operation.
the error is the same. you can see it in the attchment file.
thank you ver much.
My os is windows 7.
0 Kudos
SrinivasVinnakota
Esri Contributor
zhu,
could you please contact Esri support and log an incident for them to look in to this issue? I am unable to reproduce the error that you are getting - java process crashes when running exportWebMap tool.
0 Kudos