调用iserver web打印服务失败,如图,
这是控制台报的错误
这是我用api工具发的请求,请求参数,如下:
{
"layoutOptions" : {
"templateName": "custom1",
},
"exportOptions": {
"format": "pdf",
"dpi": 120
},
"content": {
"type": "WEBMAP",
"value": {
"maxScale": "1:1000",
"level":"9",
"center": {
"x": 121.5587,
"y": 42.0497
},
"layers": [{
"layerType": "TILE",
"name": "dltb",
"url": "http://localhost:8090/iserver/services/map-FuXinYiZhangTu/rest/maps/土地利用现状图叠加影像"
},{
"layerType":"VECTOR",
"name":"xmq",
"visible":true,
"opacity":0.6,
"dataSource":{
"layerName": "已建项目区",
"type": "REST_DATA",
"url": "http://localhost:8090/iserver/services/data-FuXinYiZhangTu/rest/data",
"dataSourceName": "项目区:已建项目区"
},
"projection":"EPSG:4326",
"featureType":"POLYGON",
"xyField":[],
"style":{
"type":"POLYGON",
"lineDash":"solid",
"fillColor":"#f00000",
"strokeColor":"#ffffff",
"strokeWidth":2
},
"enableFields":[]
}
],
"description": "",
"projection": "EPSG:4326",
"minScale": "1:1500000",
"title": "",
"version": "2.3.0"
}
}
}
结果打印失败
这是什么情况呢