<?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: Printing Tools (gpserver) in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/printing-tools-gpserver/m-p/569536#M2724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately it seems like the JSON attached to the post is incomplete. Besides that, here are few issues that I have noticed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;I don't see "mapOptions" element where "scale" and "extent" should go&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;atleast "operationalLayers" or "baseMap" needs to be there&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Quick question: how are you generating the JSON? Are you using any of ArcGIS Web APIs (java, flext or silverlight) or you are generating it programatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you use ArcGIS Web API, please use PrintTask and you don't need to worry about generating this JSON. If it is the later case, then please check Web_Map_as_JSON's specification here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/gp_exportwebmaptask.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/gp_exportwebmaptask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Aug 2012 15:12:30 GMT</pubDate>
    <dc:creator>TanuHoque</dc:creator>
    <dc:date>2012-08-24T15:12:30Z</dc:date>
    <item>
      <title>Printing Tools (gpserver)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/printing-tools-gpserver/m-p/569535#M2723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am working with teh export web map task utility.&amp;nbsp; in the 'web map as json' input box i have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; "href": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gistest2:6080/arcgis/rest/services/basemap/MapServer" rel="nofollow" target="_blank"&gt;http://gistest2:6080/arcgis/rest/services/basemap/MapServer&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "width": 400,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "height": 400,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; "extent": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "xmin": 533577.31183999323,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "ymin": 931697.99341274076,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "xmax": 895055.15751842246,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "ymax": 1293175.8390911701,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "spatialReference": {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "wkid": 102715,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "latestWkid": 2260&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "scale": 1041056.1955538762,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "exportOptions":{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "dpi": 300,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "outputSize": [500,500]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; },&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"layoutOptions":{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "titleText": "City Land Use Map",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "authorText": "Print by: XYZ",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "copyrightText": "esri",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "format" input box I entered:&amp;nbsp; GIF&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the Layout Template box:&amp;nbsp; (i left empty).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;There is no error but the reponse back looks like "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gistest2:6080/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_251911304d08404c913ccdeb41b6f75c.gif" rel="nofollow" target="_blank"&gt;http://gistest2:6080/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_251911304d08404c913ccdeb41b6f75c.gif&lt;/A&gt;&lt;SPAN&gt;" is always a blank map.&amp;nbsp; I know that the url to the map service works.&amp;nbsp; Can someone see something obvious in the syntax of the json string?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 15:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/printing-tools-gpserver/m-p/569535#M2723</guid>
      <dc:creator>p_thibault</dc:creator>
      <dc:date>2012-08-23T15:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Tools (gpserver)</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/printing-tools-gpserver/m-p/569536#M2724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately it seems like the JSON attached to the post is incomplete. Besides that, here are few issues that I have noticed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;I don't see "mapOptions" element where "scale" and "extent" should go&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;atleast "operationalLayers" or "baseMap" needs to be there&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Quick question: how are you generating the JSON? Are you using any of ArcGIS Web APIs (java, flext or silverlight) or you are generating it programatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you use ArcGIS Web API, please use PrintTask and you don't need to worry about generating this JSON. If it is the later case, then please check Web_Map_as_JSON's specification here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/rest/apiref/gp_exportwebmaptask.html"&gt;http://resources.arcgis.com/en/help/rest/apiref/gp_exportwebmaptask.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 15:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/printing-tools-gpserver/m-p/569536#M2724</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2012-08-24T15:12:30Z</dc:date>
    </item>
  </channel>
</rss>

