POST
|
Dear Robert, Can you comment on the following post as I am stuck in my print task. https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-print-task-is-unable-to-access-the/td-p/1367297 Regards,
... View more
01-15-2024
12:05 AM
|
0
|
0
|
31
|
POST
|
@TanuHoque , I already tested with both use cases (Through Browser and ArcGISPro). Errors or messages have not been promoted. map services displayed correctly. Two (02) images are attached herewith for your kind reference. AccessingMapServiceThroughBrowser Accessing MapServiceThroughPro If possible, can we do a live session to identify the problem in a quick way as five days have been gone but we are unable to resolve the issue?
... View more
01-11-2024
11:04 PM
|
0
|
0
|
82
|
POST
|
@TanuHoque , SSL certificate is valid up to November, 2024 and configured through domain name instead of IP. So map services are accessible through the domain name URLs when directly accessing through the web browser with a valid certificate message in the browser (See Attachment SSLCertificateDetail.png). However, the problem is map services are not accessible through PrintTask. Moreover, map services are secure and a Token is also passed in "Web Map as JSON" (PrintTask JSON). (See Attachment JSON-1.png and JSON-2.png). SSLCertificateDetail JSON-1 JSON-2 You can see in the attached images that for testing purposes I am trying to get print from the printTask without using our custom web application but no luck so far. Once I get print directly from the PrintTask most probably it will work through a custom web application. Moreover, according to my understanding, ArcGIS Web Adaptor is not mandatory for using the PrintTask in ArcGIS Server. The PrintTask is a server-side task that allows you to generate print layouts and export them as images, PDFs, or other formats. It is part of the ArcGIS Server REST API. whereas, ArcGIS Web Adaptor, on the other hand, is a separate component used for integrating ArcGIS Server with your existing web server infrastructure. It helps improve security and provides a convenient way to use your organization's web infrastructure for hosting the ArcGIS Server services. Please correct me if I am wrong. Can you let me where I can get ArcGIS Adaptor? Regards,
... View more
01-11-2024
05:48 AM
|
0
|
0
|
283
|
POST
|
Correction: In all above mentioned unsuccessful cases log shows the following error message
... View more
01-09-2024
08:34 PM
|
0
|
0
|
336
|
POST
|
@Noah-Sager, using IP address to access map services through PrintTask is not mandatory. The problem is to get a print of the operational layers through the map service. If you can suggest any changes I will be grateful to you. Whereas I tested PrintTask services in the following ways. 1- https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer (Successful) 2- https://localhost:6443/arcgis/rest/services/<servicesName>/MapServer/1 (UnSuccessful) 3- https://LocalIPAddress:6443/arcgis/rest/services/<servicesName>/MapServer/1 (UnSuccessful) 4- https://<LiveIPAddress>:6443/arcgis/rest/services/<servicesName>/MapServer/1 (UnSuccessful) 5- https://<DomainName>:6443/arcgis/rest/services/<servicesName>/MapServer/1 (UnSuccessful) In all above mentioned cases log shows the following error message Error executing tool. Export Web Map Failed to create layer from service at <complete service path>
... View more
01-09-2024
08:32 PM
|
0
|
1
|
336
|
POST
|
@Noah-Sager, can you correct the workflow to get solution of said problem? Thanking you in advance.
... View more
01-09-2024
06:17 PM
|
0
|
0
|
339
|
POST
|
Dear StevenGriffith, Although you posted long years before I am facing a problem with PrintTask with my own ArcGIS Server 10.8. PrintTask and Map Services are on the same physical local server. The print task (through JSON) is not able to get map services from the same server whereas other map services are accessible through another live server. Previously it was working fine but suddenly, the print task stopped accessing map services from the same server through a local IP address. The problem is how can I access map services through PrintTask on the same physical server (through LocalIP or LiveIP). Your prompt response will be highly appreciated. Regards,
... View more
01-09-2024
02:02 AM
|
0
|
0
|
181
|
POST
|
Dear TanuHoque, Thanks for your interest. Actually, Print task and Map Services are on the same physical server. The print task (through JSON) is not able to get map services from the same server whereas map services are accessible through another live server. Previously it was working with LocalIP that's why I was looking solution with LocalIP. At this moment I can rephrase the problem that how can I access map services through Print Task at the same physical server. it can be through LocalIP or LiveIP.
... View more
01-09-2024
01:37 AM
|
0
|
4
|
373
|
POST
|
I have Print and Map Services on the same physical server and a web application (developed using ArcGIS Javascript 3.x API) also deployed on the same server. Web application consumed both print and map services. When a Print Task request is sent to the server using LiveIP, at that moment Print Task created JSON. This JSON has Map service with LocalIP because now the request is on the server and it needs to use Map service so Map service should have LocalIP in JSON. Previously it was working fine but suddenly, the print task stopped accessing map services from the local IP. For testing, I tried to access map services from another live server, map services were accessible and the print task did print. The problem is, how can I access map services using local IP instead of LiveIP
... View more
01-08-2024
04:12 AM
|
0
|
11
|
585
|
POST
|
Its also possible in 3.X using esriRequest.setRequestPreCallback() I solved my problem using following code; Step 1: on(dom.byId("btnPrint"), "click", function () { esriRequest.setRequestPreCallback(myCallbackFunction); printTask.execute(printObj.params, function (evt) { document.getElementById("printResult").href = evt.url; on(dom.byId("printResult"), "click", function () { esriRequest.setRequestPreCallback(); // Detach myCallbackFunction() }); }, function (evt) { esriRequest.setRequestPreCallback(); // Detach myCallbackFunction() }); } Step 2: function myCallbackFunction(args) { if (args.url.indexOf("execute") > -1) { var jsonObj = JSON.parse(args.content.Web_Map_as_JSON); var jsontxt = JSON.stringify(setLocalIP(jsonObj)); args.content.Web_Map_as_JSON = jsontxt } return args; } Step 3: function setLocalIP(strjson) { arrayUtils.forEach(strjson.operationalLayers, function (ol) { if (ol.id != "basemap") { if (ol.url != null) { ol.url = LocalIP + ":" + ol.url.split(":")[2]; } } }, this); return strjson; }
... View more
08-16-2019
03:22 AM
|
0
|
0
|
479
|
POST
|
I have Print and Map Services on same physical server and web application (developed using ArcGIS Javascript API) also deployed on same server. Web application consumed both print and map services. When Print Task request send to server using LiveIP, at that moment Print Task crated json. This json has Map service with LiveIP. But i need localIP in Map service because Print Task request (using Live IP) send and now request is on server and its need to use Map service so Map service should have LocalIP in json. var printTask = new PrintTask("http://<LIVEIP>:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"); To achieve this task i develop following code; Step 1: alert(map.getLayer(map.graphicsLayerIds).url) //Display LiveIP Step2: map.getLayer(map.graphicsLayerIds).url = http://<ServerLocalIP:port>/arcgis/rest/services/<serviceName>/MapServer/0 (Map object updated as per requirement) Step3: var params = new PrintParameters(); params.map = map; Step4: printTask.execute(params, function (evt) { // } I checked in fiddler after send request ("printTask.execute"), the created json has LiveIP in Rest service URL instead of LocalIP. Thanking you in advance.
... View more
07-31-2019
01:04 AM
|
0
|
3
|
653
|
POST
|
Due to a requirement, i want to change graphicsLayer (arcgis/rest/services) service URL from Live IP to Local IP. And than want to use in "printTask.execute". To achieve this task i develop following code; Step 1: alert(map.getLayer(map.graphicsLayerIds).url) //Display LiveIP Step2: map.getLayer(map.graphicsLayerIds).url = http://<ServerLocalIP:port>/arcgis/rest/services/<serviceName>/MapServer/0 (Map object updated as per requirement) Step3: var params = new PrintParameters(); params.map = map; Step4: printTask.execute(params, function (evt) { // } I checked in fiddler after send request ("printTask.execute"), the created json has LiveIP in Rest service URL instead of LocalIP. Thanking you in advance.
... View more
07-31-2019
12:12 AM
|
0
|
1
|
298
|
Online Status |
Offline
|
Date Last Visited |
01-15-2024
11:37 AM
|