<?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 Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime) in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1203663#M33786</link>
    <description>&lt;P&gt;Prior to ArcGIS Server version 10.9.1 we have been able to draw customgraphics using the SOAP API on top of an ArcGIS Server mapservice. This is used for printing purposes (selections, copyright etc.)&lt;/P&gt;&lt;P&gt;It has been working fine from ArcGIS Server 9 to 10.9 when publishing from ArcMap and 10.8-10.9 services published with ArcGIS Pro (runtime).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;At 10.9.1 only services published with ArcMap show custom graphics. When using the ArcGIS Pro (Service Runtime)&amp;nbsp;&amp;nbsp;exportMapImage returns a blank (white) image.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The behaviour is seen at 3 different ArcGIS Server installations. Two federated with Portal and one stand-alone ArcGIS Server site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know if customgraphics is deprecated at 10.9.1 when using the ArcGIS Pro Service runtime?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Aug 2022 12:02:04 GMT</pubDate>
    <dc:creator>LarsSøe</dc:creator>
    <dc:date>2022-08-17T12:02:04Z</dc:date>
    <item>
      <title>Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1203663#M33786</link>
      <description>&lt;P&gt;Prior to ArcGIS Server version 10.9.1 we have been able to draw customgraphics using the SOAP API on top of an ArcGIS Server mapservice. This is used for printing purposes (selections, copyright etc.)&lt;/P&gt;&lt;P&gt;It has been working fine from ArcGIS Server 9 to 10.9 when publishing from ArcMap and 10.8-10.9 services published with ArcGIS Pro (runtime).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;At 10.9.1 only services published with ArcMap show custom graphics. When using the ArcGIS Pro (Service Runtime)&amp;nbsp;&amp;nbsp;exportMapImage returns a blank (white) image.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The behaviour is seen at 3 different ArcGIS Server installations. Two federated with Portal and one stand-alone ArcGIS Server site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody know if customgraphics is deprecated at 10.9.1 when using the ArcGIS Pro Service runtime?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 12:02:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1203663#M33786</guid>
      <dc:creator>LarsSøe</dc:creator>
      <dc:date>2022-08-17T12:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1203854#M33789</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/137017"&gt;@LarsSøe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you please share your code or SOAP request with us? You can share it hear or direct message me.&lt;/P&gt;&lt;P&gt;We will take a look and get back to you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tanu&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 17:31:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1203854#M33789</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2022-08-17T17:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1204318#M33803</link>
      <description>&lt;P&gt;Hi Tanu.&lt;/P&gt;&lt;P&gt;Thank you very much for replying. It took a little effort to refactor the code to one simple function - but the enclosed example shows the problem.&lt;/P&gt;&lt;P&gt;The classes "RedlineObject" and "NetGISPoint" are very simple classes which contain geometries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the "RedlineArcmap"&amp;nbsp; an image with a polygon is returned. "Redline_Pro3" (service published with ArcGIS Pro 3.0) returns an empty image.&lt;/P&gt;&lt;P&gt;Btw its Java code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope to hear from you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;public static void main(String[] args) {
		
		String url = "https://xxx/arcgis/services/Redline_PRO3/MapServer?wsdl";
		String agsVersion = "2.9.0";
		String redlineServiceName = "Redline_PRO3";
		
		//String url = "https://xxx/arcgis/services/RedlineArcmap/MapServer?wsdl";
		//String agsVersion = "10.8";
		//String redlineServiceName = "RedlineArcmap";
		
		try {
			
			QName qName = new QName("http://www.esri.com/schemas/ArcGIS/" + agsVersion, redlineServiceName + "_MapServer");
			ArcGISServerSoapStub stub = new ArcGISServerSoapStub(new URL(url), qName);
			String token = "";
			
			MapServerPort port = stub.getMapServerPort(agsVersion, token);
			MapServerInfo mi = port.getServerInfo(port.getDefaultMapName());
			MapDescription mapDescription = mi.getDefaultMapDescription(); 			
			ImageDescription imageDescription = new ImageDescription();

			ImageType type = new ImageType();
			type.setImageFormat(com.esri.schemas.arcgis.EsriImageFormat.ESRI_IMAGE_PNG_32); 
			type.setImageReturnType(EsriImageReturnType.ESRI_IMAGE_RETURN_URL);
			
			ImageDisplay imageDisp = new ImageDisplay();
			imageDisp.setImageDPI(96);
			imageDisp.setImageWidth(1000);
			imageDisp.setImageHeight(1000);
			
			imageDescription.setImageDisplay(imageDisp);
			imageDescription.setImageType(type);	
			
			
			// Set layers invisible
			for (LayerDescription ld : mapDescription.getLayerDescriptions().getLayerDescription()) {
				ld.setVisible(false);
			}
			ArrayOfGraphicElement custGraphics = new ArrayOfGraphicElement();
			RgbColor color = new RgbColor();
			color.setRed((short) 125);
			color.setGreen((short) 125);
			color.setBlue((short) 125);
			
			SimpleFillSymbol fillSymbol = new SimpleFillSymbol();

			fillSymbol.setColor(color);
			SimpleLineSymbol outlineSymbol = new SimpleLineSymbol();
			outlineSymbol.setWidth(2);
			outlineSymbol.setColor(color);
			outlineSymbol.setStyle(EsriSimpleLineStyle.ESRI_SLS_SOLID);
			fillSymbol.setOutline(outlineSymbol);
			fillSymbol.setStyle(EsriSimpleFillStyle.ESRI_SFS_NULL);
			
			ArrayOfPoint pointArray = new ArrayOfPoint();
			
			RedlineObject ro = new RedlineObject();
			ro.addPoint(new NetGISPoint(693387.3656852759, 6222162.530941748));
			ro.addPoint(new NetGISPoint(693246.565685276, 6223506.530941748));
			ro.addPoint(new NetGISPoint(695806.565685276, 6223672.9309417475));
			ro.addPoint(new NetGISPoint(697188.9656852758, 6222520.9309417475));
			ro.addPoint(new NetGISPoint(694884.9656852758, 6221138.530941748));
			ro.addPoint(new NetGISPoint(693387.3656852759, 6222162.530941748));
			
			Iterator&amp;lt;NetGISPoint&amp;gt; itPoints = ro.getPoints().iterator();
			while (itPoints.hasNext()) {
				NetGISPoint ngp = itPoints.next();
				PointN point = new PointN();
				point.setX(ngp.getX());
				point.setY(ngp.getY());
				pointArray.getPoint().add(point);
			}
			ArrayOfRing rings = new ArrayOfRing();
			Ring ring1 = new Ring();
			ring1.setPointArray(pointArray);
			PolygonN polygon = new PolygonN();
			rings.getRing().add(ring1);
			polygon.setRingArray(rings);
			polygon.setExtent(mapDescription.getMapArea().getExtent());
			polygon.setHasID(false);
			polygon.setHasM(false);
			polygon.setHasZ(false);
			polygon.setSpatialReference(mapDescription.getSpatialReference());

			PolygonElement elm = new PolygonElement();
			elm.setSymbol(fillSymbol);
			elm.setPolygon(polygon);
			elm.setReferenceScale((double) 0);
			custGraphics.getGraphicElement().add(elm);

			mapDescription.setCustomGraphics(custGraphics);
			
			EnvelopeN extent = (EnvelopeN) mapDescription.getMapArea().getExtent();
			extent.setXMax(704081.7656852759);
			extent.setYMin(6212302.530941747);
			extent.setYMax(6231702.530941747);
			extent.setXMin(689681.7656852759);
			
			MapImage image = port.exportMapImage(mapDescription, imageDescription);
			System.out.println(image.getImageURL());
						
		} catch (MalformedURLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1204318#M33803</guid>
      <dc:creator>LarsSøe</dc:creator>
      <dc:date>2022-08-30T08:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1207366#M33874</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/137017"&gt;@LarsSøe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for sharing the code and so sorry for the delay. We are looking at this and hope to have a fix for this in upcoming release.&lt;/P&gt;&lt;P&gt;Appreciate your reporting it to us.&lt;/P&gt;&lt;P&gt;Tanu&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 19:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1207366#M33874</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2022-08-29T19:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1291580#M36018</link>
      <description>&lt;P&gt;Hi Tanu.&lt;/P&gt;&lt;P&gt;I have just tested against version 11 and the problem still seems to exist. Will the problem not be resolved?&lt;/P&gt;&lt;P&gt;Hope to hear from you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars Søe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 13:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1291580#M36018</guid>
      <dc:creator>LarsSøe</dc:creator>
      <dc:date>2023-05-22T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1291683#M36025</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/137017"&gt;@LarsSøe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It actually got fixed in 11.1 which was released not too long ago. 11.0 was already released when we learned about this bug.&lt;/P&gt;&lt;P&gt;Would you be okay for you to upgrade to 11.1?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 16:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1291683#M36025</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2023-05-22T16:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Graphics not rendered in SOAP request exportMapImage 10.9.1 (ArcGIS Pro runtime)</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1292462#M36043</link>
      <description>&lt;P&gt;I have testet and everything seems to work in 11.1 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/graphics-not-rendered-in-soap-request/m-p/1292462#M36043</guid>
      <dc:creator>LarsSøe</dc:creator>
      <dc:date>2023-05-24T08:06:11Z</dc:date>
    </item>
  </channel>
</rss>

