I took your answer to mean that layer names need to be coded into the Task request instead?
I tried submitting using the WMS layer as the only the following operational layer and now I'm seeing:
<Msg time='2018-06-13T17:23:24,668' type='SEVERE' code='103800' target='Utilities/PrintingTools.GPServer' machine='WTGGIS1' process='19928' thread='23592' user='anonymous' >MC image: Failed to open raster dataset</Msg>
This is the request:
{
"mapOptions": {
"showAttribution": false,
"extent": {
"xmin": -8279556.363820421,
"ymin": 4955018.621996873,
"xmax": -8279124.016879315,
"ymax": 4955213.89471751,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"scale": 1128.497176
},
"operationalLayers": [
{
"url" : "http://reports.massivecert.com:8080/geoserver/wms",
"title" : "MC image",
"type" : "wms",
"version":"1.1",
"format" : "png8",
"transparentBackground" : true,
"layers" : [
{ name: "Postgres:buildings"},
{ name: "Postgres:parcels"},
{ name: "Postgres:nonnfhl_floodplain"}
]
},
],
"exportOptions": {
"outputSize": [
1448,
653
],
"dpi": 96
}
}
The response contains a URL to an image file with only a white background.