exportwebmap service error--map size is missing

2003
2
09-01-2011 07:48 PM
zhuzheng
New Contributor
hi,guys
    i can not run the exportwebmap gp service successfully in the service directory. this error tip is : map size is missing. but i can not find the map size parameter. The detailed error info is in the attachment files.
the json code of web map is :
{
"baseMap" : {
"title" : "My Basemap",
"baseMapLayers" :  {
{
"url" : "http://localhost:6080/arcgis/rest/services/Ex3print/MapServer",
}
}
},
"mapOptions" : {
"extent" : {
"xmin":2473180.9606,
"ymin":679774.7489,
"xmax":2500969.998,
"ymax":708732.566,
},
"scale" : 44898,
}??
"exportOptions": {
"dpi" : 100,
"outputSize" :  {
500,
500
}
}
}

Does everyone know this?
thank you very much.
0 Kudos
2 Replies
SrinivasVinnakota
Esri Contributor
Zhu,
Try the modified JSON request below. You can compare this with your original request to see the differences.

Also consider running the JSON through a validator to make sure that a correct request is sent to the print service.

{
"baseMap" : {
"title" : "My Basemap",
"baseMapLayers" : [
{
"url" : "http://localhost:6080/arcgis/rest/services/Ex3print/MapServer"
}
]
},
"mapOptions" : {
"extent" : {
"xmin":2473180.9606,
"ymin":679774.7489,
"xmax":2500969.998,
"ymax":708732.566
},
"scale" : 44898
},
"exportOptions": {
"dpi" : 100,
"outputSize" : [
500,
500
]
}
0 Kudos
zhuzheng
New Contributor
hi�?thanks for your repense.
i use your json code , i meet the error which i have posted in another post named "how to run exportwebmap service? "
can you see it? thank you very much.
0 Kudos