<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best method for forming JSON for Export Web Map (Printing) task in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703549#M26966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin's previous comment describes my situation too.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few comments of my own...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the flow of my application:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) In my app, the user selects multiple records from a data grid (no map) and clicks print&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) For each object selected, my application does the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]a. Directly call the Query Task (REST API) to locate the object on the map - business parameters tell my app which service/layer/field contains the object's identifier&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b. Get the object's extent from the query task results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c. Construct the JSON for the export web map request, providing the extent from the previous step - business parameters tell us which services to display, the order, opacity, etc.&amp;nbsp; And to answer your first question, I am exporting multiple map services into the PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;d. Call the export web map task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e. Concatenate the individual PDFs into one document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eventually, I'd like to remove the UI altogether so that the backend of our application can generate these maps automatically for the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Kevin pointed out, we're looking for something to make step 2c easier - i.e. constructing the JSON for the export web map request.&amp;nbsp; I'm envisioning an ESRI .NET library containing all the classes that make up the web map specification - classes which could then be serialized to JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocessing service sounds like a possibility, but here are my concerns...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- We work with multiple clients (of varying GIS experience levels), so I'd prefer not to deploy a geoprocessing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The map service does not contain all of the data from our system so, as Kevin pointed out, I'd still have to get that data/business parameters to the gp tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 21:43:13 GMT</pubDate>
    <dc:creator>DavidSchuster1</dc:creator>
    <dc:date>2012-08-29T21:43:13Z</dc:date>
    <item>
      <title>Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703540#M26957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone suggest the best way to generate the JSON ("Web_Map_as_JSON" parameter) for a call to the REST API for the Export Web Map printing task?&amp;nbsp; I need to be able to programatically generate the JSON based on a number of changing configuration options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like I have a few options:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Manually construct the JSON string myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Create my own set of classes to represent each parameter (mapOptions, operationalLayers, etc), and use JSON serialization.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Does ESRI already provide a class library that supports this?&amp;nbsp; ArcGIS Runtime for WPF perhaps?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I'm trying to do:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to create a .NET 3.5 class library (no user interface) that can be called repeatedly by the rest of my application whever a static map image is needed.&amp;nbsp;&amp;nbsp; The caller will pass in some feature identifier, and my library will use the REST APIs to locate the feature and return the map image zoomed into the feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 19:36:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703540#M26957</guid>
      <dc:creator>DavidSchuster1</dc:creator>
      <dc:date>2012-08-24T19:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703541#M26958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should use one of ArcGIS Web APIs' (JavaScript, Silverlight or Flex) PrintTask in conjunction with PrintingTools service from your web app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is you application a web app or desktop app?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 22:42:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703541#M26958</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-08-24T22:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703542#M26959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's a web application but it doesn't actually need to display an interactive map.&amp;nbsp; Basically, I want the user to be able to select a set of records and click print.&amp;nbsp; A server-side component would then print a separate zoomed in map for each of the selected records, then return the entire result as a multi-page concatenated pdf document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What approach do you recommend for this?&amp;nbsp; I've thought about Server Object Extensions or a custom geoprocessing task, but I'd rather not require the GIS department to install anything on their end.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 12:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703542#M26959</guid>
      <dc:creator>DavidSchuster1</dc:creator>
      <dc:date>2012-08-27T12:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703543#M26960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same requirement. I need to fire off a report that contains a map but i do not have a map in my application. I went with the second approach you mentioned - i created my own class structure to replicate what needs to be in the web_map_as_json request and then i serialize that with JSON.NET to create my request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But as i was creating that code there was a little voice in my head saying, 'you shouldn't have to be doing this, surely they did it for you somewhere'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 15:03:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703543#M26960</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-27T15:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703544#M26961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same voice in my head &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp; Seems like there should be a simpler/cleaner way to do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 18:00:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703544#M26961</guid>
      <dc:creator>DavidSchuster1</dc:creator>
      <dc:date>2012-08-27T18:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703545#M26962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think all of the esri samples assume you have the api and a web map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I kind of like rolling the classes myself because i know what json they will generate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and i think esri did a good job, in this case, of publishing and documenting the format for the request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, mapping the specification to classes in .NET is not as straightforward as it seems when you consider that different types of layers have different request formats. So you have to create a type/subtype relationship to encapsulate the inheritance between properties that all layers have and those of specific layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end it looks like a tutorial on OOP principles&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 18:24:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703545#M26962</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-27T18:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703546#M26963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Regarding your comment about OOP Principles, that's exactly what I was thinking...&amp;nbsp; All the different types and subtypes of operational layers, etc... hello polymorphism!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, thanks for confirming that I'm not crazy.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 18:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703546#M26963</guid>
      <dc:creator>DavidSchuster1</dc:creator>
      <dc:date>2012-08-27T18:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703547#M26964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks David, Kevin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole idea behind the ExportWebMap is that you have map (composed of mapservice, featuresure, graphics etc.) on your web app and you want that map to be printed by exporting it out to a pdf or any other format first.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since your web applications does not need to have mapping component, it seems like a custom arcpy.mapping based Geoprocesing service might be a viable solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before I can suggest anything specific, I'd appreciate if you could answer the following questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. do you plan to use map service layer(s) in the map document that you want to be exported out to pdf?, OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. is it that you have an existing mxd containing all layers pointing to local datasets (e.g. in a fgdb, shapefile, sde etc) that you want to open, zoom into the extent of a feature and export to a pdf?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. in your report, how do you know what extent the map needs to be zoomed at? is that like your web app knows the extent always and you are planning that to be sent to the ExportWebMap task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please keep in mind that ExportWebMap task in PrintingTools service currently does *not* support returning multi-page pdf - it is always single page. If you need to return multi-page pdf, then you need to go with a custom solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;A side note&lt;/SPAN&gt;&lt;SPAN&gt;: arcpy.mapping.ConvertWebMapToMapDocument, as the name suggests, takes the same webmap_json that ExportWebMap task takes and returns a MapDocument objects that you can then export to any format supported using arcpy functions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 18:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703547#M26964</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-08-29T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703548#M26965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For my reports i collect business parameters from the user and then i use the js api to get a feature extent based on those params. So i still have the api dependency, just no map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then serialize that extent into my homegrown webmap class which serializes just as the js api would.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think if i was doing it with python i would still need to get those map params to the gp tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I like the esri webmap structure as i think it accurately and succinctly defines all of the components needed to print a great map. I just wish there was an easier way to create that format when you don't have a webmap.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 20:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703548#M26965</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-29T20:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703549#M26966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin's previous comment describes my situation too.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A few comments of my own...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the flow of my application:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) In my app, the user selects multiple records from a data grid (no map) and clicks print&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) For each object selected, my application does the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]a. Directly call the Query Task (REST API) to locate the object on the map - business parameters tell my app which service/layer/field contains the object's identifier&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b. Get the object's extent from the query task results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c. Construct the JSON for the export web map request, providing the extent from the previous step - business parameters tell us which services to display, the order, opacity, etc.&amp;nbsp; And to answer your first question, I am exporting multiple map services into the PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;d. Call the export web map task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e. Concatenate the individual PDFs into one document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eventually, I'd like to remove the UI altogether so that the backend of our application can generate these maps automatically for the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As Kevin pointed out, we're looking for something to make step 2c easier - i.e. constructing the JSON for the export web map request.&amp;nbsp; I'm envisioning an ESRI .NET library containing all the classes that make up the web map specification - classes which could then be serialized to JSON.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocessing service sounds like a possibility, but here are my concerns...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- We work with multiple clients (of varying GIS experience levels), so I'd prefer not to deploy a geoprocessing tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The map service does not contain all of the data from our system so, as Kevin pointed out, I'd still have to get that data/business parameters to the gp tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 21:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703549#M26966</guid>
      <dc:creator>DavidSchuster1</dc:creator>
      <dc:date>2012-08-29T21:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703550#M26967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DSMapper - our apps sound strikingly similar. In my case I'm pairing the ags generated map with an SSRS report and merging them into a single pdf like you do with your multiple maps. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unlike your app though I'm thinking of moving toward having a map in mine so that i can allow the user to further refine the mapping print output before it gets generated. But there will always be a version that has no mapping capabilities because it is just not relevant to the workflow.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703550#M26967</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2012-08-30T13:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Best method for forming JSON for Export Web Map (Printing) task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703551#M26968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for a long silence from my side. In case you have not figured out this yet, the following seems like a good solution to your problem....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems like with ArcGIS API for Silverlight, you may have a luck of using ArcGIS Server 10.1's Printing Service with Web API's Print Task &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;STRONG&gt;without having a map&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; on your web application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently the API has an &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/silverlight-api/apiref/ESRI.ArcGIS.Client.Printing~ESRI.ArcGIS.Client.Printing.PrintParameters~_ctor(IEnumerable{Layer},Envelope).html" rel="nofollow noopener noreferrer" target="_blank"&gt;overloaded constructor for PrintParameters class&lt;/A&gt;&lt;SPAN&gt; that allows you to create a PrintParameters object only with layers and extent, no map is needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you get that you can pass that as a parameter to Execute() function of Print Task to get the output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PrintTask printTask = new PrintTask("http://myServer/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export Web Map Task");
ArcGISDynamicMapServiceLayer lyr = new ArcGISDynamicMapServiceLayer();
lyr.Url = "http://myServer/arcgis/rest/services/myMapService/MapServ1er";
ObservableCollection&amp;lt;Layer&amp;gt; colLayers = new ObservableCollection&amp;lt;Layer&amp;gt;();
colLayers.Add(lyr);

Envelope extent = new Envelope(&amp;lt;xmin&amp;gt;, &amp;lt;ymin&amp;gt;, &amp;lt;xmax&amp;gt;, &amp;lt;ymax&amp;gt;);
PrintParameters PrintParams = new PrintParameters(colLayers, extent);

... // set layoutOptions [optional]
... // set exportOptions [optional]

printTask.ExecuteAsync(PrintParams);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will prevent you from:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;coming up your own set of classes or&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;manual construction of json string in your code&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if that works for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/best-method-for-forming-json-for-export-web-map/m-p/703551#M26968</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2021-12-12T05:35:19Z</dc:date>
    </item>
  </channel>
</rss>

