Una característica poderosa de ArcGIS Data Interoperability<\/STRONG> y su 'primo' FME<\/STRONG> es la capacidad de guardar y compartir conexiones a aplicaciones web. Una vez configurada, puede usar una conexión web para leer y escribir datos en cualquier número de espacios de trabajo mientras mantiene credenciales seguras en un solo lugar.<\/P><\/P>Portal for ArcGIS<\/STRONG> es un componente de ArcGIS Enterprise que considero como un sistema de gestión de contenido. Puede comenzar a leer sobre ello aquí<\/A>. Un portal es un componente de infraestructura geoespacial altamente capaz, de inquilino único y seguro donde puede crear, mantener y compartir datos, mapas, escenas y aplicaciones. Este blog trata sobre crear y usar una aplicación de portal para acceder a servicios de entidades alojados que se pueden leer y escribir con el lector/escritor ARCGISPORTALFEATURES<\/STRONG> o el transformador ArcGISOnlineConnector<\/A>.<\/P><\/P>El punto de partida es su portal, aquí está la página principal de mi portal (falsa, pero entenderá la idea):<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/index.html<\/A> <\/P><\/P>Lo primero que debe hacer es crear una aplicación para colgar la conexión web.<\/P><\/P>Vaya a su vista Content<\/STRONG> y haga clic en Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Elija 'An application<\/STRONG>' y haga clic en Application<\/STRONG> y complete los datos descriptivos:<\/P><\/P><\/P><\/P><\/P>La aplicación será creada y será llevado a su URL principal, que se verá algo así:<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/item.html?id=50bfc12ef28840d48eac324c8ec67dd0<\/A> <\/P><\/P>En la parte superior derecha está la vista Settings<\/STRONG>, haga clic en ella.<\/P><\/P><\/P><\/P>Desplácese hacia abajo (o haga clic en Application<\/STRONG> junto a General<\/STRONG> arriba a la izquierda) y verá App Registration<\/STRONG>:<\/P><\/P>Haga clic en Registered Info para ver los detalles que necesitará para crear su conexión web: Haga clic en Muestra Secreto para exponer la clave de autenticación hexadecimal de 32 caracteres. Ahora tiene todo lo que necesita para crear su conexión web de aplicación portal para Workbench. Desde la cinta Pro Analysis (o editando cualquier herramienta ETL) abra la aplicación Workbench y vaya a Tools>FME Options>Web Connections. La mía se ve así (inicio de sesión oculto): Haga clic en Manage Services abajo a la derecha y en el diálogo Manage Web Services, use el menú desplegable abajo a la izquierda para Create From, despliegue hacia la derecha y elija Esri ArcGIS Portal (Template). Ahora complete el diálogo: <img __jive_id=\"485099\" class=\"jive-image image-10\" src=\"https:\/\/us.v-cdn.net6038851uploadslegacyfsonline485099_pastedImage_3.png\
<\/P>
El punto de partida es su portal, aquí está la página principal de mi portal (falsa, pero entenderá la idea):<\/P>
Lo primero que debe hacer es crear una aplicación para colgar la conexión web.<\/P>
Vaya a su vista Content<\/STRONG> y haga clic en Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Elija 'An application<\/STRONG>' y haga clic en Application<\/STRONG> y complete los datos descriptivos:<\/P><\/P><\/P><\/P><\/P>La aplicación será creada y será llevado a su URL principal, que se verá algo así:<\/P><\/P>
En la parte superior derecha está la vista Settings<\/STRONG>, haga clic en ella.<\/P><\/P><\/P><\/P>Desplácese hacia abajo (o haga clic en Application<\/STRONG> junto a General<\/STRONG> arriba a la izquierda) y verá App Registration<\/STRONG>:<\/P><\/P>
Haga clic en Registered Info para ver los detalles que necesitará para crear su conexión web:
Haga clic en Muestra Secreto para exponer la clave de autenticación hexadecimal de 32 caracteres. Ahora tiene todo lo que necesita para crear su conexión web de aplicación portal para Workbench. Desde la cinta Pro Analysis (o editando cualquier herramienta ETL) abra la aplicación Workbench y vaya a Tools>FME Options>Web Connections. La mía se ve así (inicio de sesión oculto):
Haga clic en Manage Services abajo a la derecha y en el diálogo Manage Web Services, use el menú desplegable abajo a la izquierda para Create From, despliegue hacia la derecha y elija Esri ArcGIS Portal (Template).
Ahora complete el diálogo:
<img __jive_id=\"485099\" class=\"jive-image image-10\" src=\"https:\/\/us.v-cdn.net6038851uploadslegacyfsonline485099_pastedImage_3.png\
Ah I see, sounds like a portal bug indeed. You could always shell out to ArcPy in the workspace, assuming the Geocode Addresses geoprocessing tool likes your portal locator, if not then use a file-based locator.
Code 401. You are not Authorized to access (geocoder)...Invalid Creds. I've tried my personal creds and the portal admin. I've tried all sharing levels for the Portal access app and the geocoder. ESRI Support blames it on 10.7.1. I'm upgrading in April or May. I survive til then. thanks for answering.
Hi, unless I'm missing something, if you change your Authentication Type to Generate Token then you'll embed your username and password into the Geocoder and a new token will be generated on each run.
I followed this set up to access a geocoding service in Portal and it worked perfectly for a day. I found the way to extend the Auth to 2 weeks / 20,000 minutes. But I still have to manually Reauthenticate the Web Connection every 2 weeks. It was great for years when I could specify a service and store a username and pw in the Geocoder. Any ideas or work arounds? Can I automate the Reauth?
I have to stay on 3.3 because of an integration. Thank you!!
Pro 3.3 and FME(R) 2023.1.1.1 (20231011 - Build 23636 - WIN64)
Hello RahulSharma_SfeSoft,
Thank you for your reply, do you think the same procedure works for ArcGIS Enterprise please?
cheers,
Kavi
Hello Kavi, The behavior you have described is expected. OAuth refresh token does have an expiration time that can be set at the Enterprise level; see the documentation here.
Pleae set the maximum value set (-1) for the refresh token as shown below.
To avoid re-authenticating the web connection, I would advise you the following.
Create a reader with the Esri ArcGIS Portal Feature Service Reader If required, restrict the reader to read 1 or 10 features (Maximum Features to Read under Parameters) Add a logger and save the workspace Publish the workspace to FME Flow (formerly FME Server) Schedule this workspace to run every two weeks(using Automation). This will trigger the web service and generate a refresh token before it expires.
Rahul Sharma
Hello Kavi, officially you should contact Safe Software support for an FME Server issue but to be helpful we'll connect with Safe at this end to put together a response. Please stand by the next few days.
Hello @BruceHarold ,
Thank you so much for this article.
We have several FME Server services that runs nightly to update feature hosted services. This all works well but every month or two the services all fail because they have lost their authentication to AGOL even though there were no account changes. I can re-authenticate the connection and then the services run for a month and then they lose their authentication again. Is there a way to set up a permanent authentication so that they do not have to be periodically re-authenticated?
Thank you.
I've followed these instructions but either when testing my new web service connection or trying to create a new web connection from my new web service connection, after clicking the Authenticate button, and logging in (via SAML), I get this screen with no way to go any further or save the new web connection.
Any ideas?
Hi, usually this sort of issue is fixed by re-authenticating the web connection, you can do this by going to the Web Connections pane in FME Options and right clicking on the connection, a menu option will be available.
@BruceHarold ,
I have successfully connected to my Portal and found the feature service I want to use. But when I go to generate a list of layers or find branched versions, the wheels just spin. It never seems to retrieve what I need. I've tried this on many different feature services. You help is much appreciated!
Are you clicking the Manage Services button and then using the Create From option from the + sign bottom left?
Bruce,
Nearly there - I can now see this option and select it but can't find an option to change the authentication information (app_id and password)..
Sorry about that, I replaced the attachment with what I think is the right file for you to copy into:
C:\Program Files\ArcGIS\Data Interoperability for ArcGIS Pro\WebServices
Thanks Bruce.
I added the xml but it has a "password" section there and when I leave it empty I get an error message "
Unable to read file 'C:\Users\asafe\Documents\Metrics\portal.xml'. Most likely cause is an incorrect password.
Encryption Error: AES Decrypt finalization failed."
Thoughts?
I added an attachment to the post but please also open a support call about the template not being available in your install. Thank you.
Hi,
I am trying to follow this workflow but cannot find the "Esri ArcGIS Portal (Template)" option. Do you have this in a file which I can import from?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate para una cuenta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.