Silnou funkcí ArcGIS Data Interoperability<\/STRONG> a 'příbuzného' FME<\/STRONG> je možnost ukládat a sdílet připojení k webovým aplikacím. Po konfiguraci můžete použít webové připojení k čtení a zápisu dat v libovolném počtu pracovních prostorů při zachování zabezpečených přihlašovacích údajů pouze na jednom místě.<\/P><\/P>Portal for ArcGIS<\/STRONG> je komponenta ArcGIS Enterprise, kterou vnímám jako systém pro správu obsahu. Můžete začít číst o něm zde<\/A>. Portal je vysoce schopná, jednonájemníková, zabezpečená geospatialní infrastrukturní komponenta, kde můžete vytvářet, udržovat a sdílet data, mapy, scény a aplikace. Tento blog je o vytváření a používání portalové aplikace pro přístup k hostovaným feature službám, které lze číst a zapisovat pomocí ARCGISPORTALFEATURES<\/STRONG> reader/writer nebo ArcGISOnlineConnector<\/A> transformátoru.<\/P><\/P>Výchozím bodem je váš portal, zde je domovská stránka mého portalu (falešná, ale pochopíte to):<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/index.html<\/A> <\/P><\/P>První věc je vytvořit aplikaci, ke které se webové připojení připojí.<\/P><\/P>Přejděte do zobrazení Content<\/STRONG> a klikněte na Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Zvolte 'An application<\/STRONG>' a klikněte na Application<\/STRONG> a vyplňte popisné údaje:<\/P><\/P><\/P><\/P><\/P>Aplikace bude vytvořena a budete přesměrováni na její domovskou URL, která bude vypadat nějak takto:<\/P><\/P>https:\/\/nonexistent.esri.com\/portal\/home\/item.html?id=50bfc12ef28840d48eac324c8ec67dd0<\/A> <\/P><\/P>V pravém horním rohu je zobrazení Settings<\/STRONG>, klikněte na něj.<\/P><\/P><\/P><\/P>Sjeďte dolů (nebo klikněte na Application<\/STRONG> vedle General<\/STRONG> vlevo nahoře) a uvidíte App Registration<\/STRONG>:<\/P><\\/p\">
<\/P>
Výchozím bodem je váš portal, zde je domovská stránka mého portalu (falešná, ale pochopíte to):<\/P>
První věc je vytvořit aplikaci, ke které se webové připojení připojí.<\/P>
Přejděte do zobrazení Content<\/STRONG> a klikněte na Add Item<\/STRONG>:<\/P><\/P><\/P><\/P>Zvolte 'An application<\/STRONG>' a klikněte na Application<\/STRONG> a vyplňte popisné údaje:<\/P><\/P><\/P><\/P><\/P>Aplikace bude vytvořena a budete přesměrováni na její domovskou URL, která bude vypadat nějak takto:<\/P><\/P>
V pravém horním rohu je zobrazení Settings<\/STRONG>, klikněte na něj.<\/P><\/P><\/P><\/P>Sjeďte dolů (nebo klikněte na Application<\/STRONG> vedle General<\/STRONG> vlevo nahoře) a uvidíte App Registration<\/STRONG>:<\/P><\\/p\">
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?
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Nový zde? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.