<?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: REST API requests using Java SDK? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099373#M2455</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt;&amp;nbsp;sorry for the lack of clarity. I guess I am not sure but I am open to both options. Essentially I would like to build a webapp with java on the backend that can do GET and POST against a published service on an ArcGIS Server to query, edit features, and grab attachments from those published services and also be able to commit attachments and general feature data into a db such as oracle or postgres&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 14:35:12 GMT</pubDate>
    <dc:creator>NickRobles2</dc:creator>
    <dc:date>2021-09-17T14:35:12Z</dc:date>
    <item>
      <title>REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099223#M2451</link>
      <description>&lt;P&gt;IS there any functionality in the Java SDK that allows for interactions on a REST? For instance, I am trying to access the attachments on a published service or just pull general information about the table or layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that there is MapServerBindingStub but those functions appear to be for SOAP only. Currently I am doing this through custom code by getting JSON requests and parsing those, which is fine, but I want to make sure I am not missing anything in the API that I could be using instead to make things easier.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 00:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099223#M2451</guid>
      <dc:creator>NickRobles2</dc:creator>
      <dc:date>2021-09-17T00:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099291#M2452</link>
      <description>&lt;P&gt;When you say the Java SDK, I want to make sure you are talking about this &lt;A href="https://developers.arcgis.com/java/" target="_self"&gt;product&amp;nbsp;&lt;/A&gt;which is for writing desktop apps with JavaFX?&amp;nbsp; Note that this API is not for writing server components in microservices for example, this is a client side API.&lt;/P&gt;&lt;P&gt;If this is the product you are referring to then the answer is yes, we have lots if API which effectively wraps the ArcGIS &lt;A href="https://developers.arcgis.com/rest/" target="_self"&gt;Rest&lt;/A&gt; API so you can use it in Java code easily.&lt;/P&gt;&lt;P&gt;There is a sample &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/100.12.0/editing/edit-feature-attachments" target="_self"&gt;app&lt;/A&gt; in git which shows how to work with attachments alongside many others which explain common workflows.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 07:55:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099291#M2452</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-09-17T07:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099344#M2453</link>
      <description>&lt;P&gt;Hi Mark!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. This does help and it seems I have been using an outdated&amp;nbsp;ArcGIS WebService Engine Runtime, and not the Java SDK. That being said, would this wrapped REST API allow me to work with published feature layers on an ArcGIS Server?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I hate to be so needy but could you link me to examples of the Java API that wraps the REST API? I have checked in the github link you provided for examples and I can't seem to find examples for making GET requests/queries against a map service&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 13:43:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099344#M2453</guid>
      <dc:creator>NickRobles2</dc:creator>
      <dc:date>2021-09-17T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099350#M2454</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/338049"&gt;@NickRobles2&lt;/a&gt;&amp;nbsp;I want do double check that you are intending on developing a JavaFX Desktop app which runs on Windows, Linux or Mac?&amp;nbsp; If this is the case, you are in the right place and I can help you.&lt;/P&gt;&lt;P&gt;If you are writing a server side component then the ArcGIS Runtime for Java product is not what you should be using. If you are writing a server component then I'll point you in a different direction to help you.&lt;/P&gt;&lt;P&gt;If you are writing desktop JavaFX apps, then let me know what you are trying to do and I'll point you at the relevant doc and samples.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 13:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099350#M2454</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-09-17T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099373#M2455</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/48868"&gt;@MarkBaird&lt;/a&gt;&amp;nbsp;sorry for the lack of clarity. I guess I am not sure but I am open to both options. Essentially I would like to build a webapp with java on the backend that can do GET and POST against a published service on an ArcGIS Server to query, edit features, and grab attachments from those published services and also be able to commit attachments and general feature data into a db such as oracle or postgres&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099373#M2455</guid>
      <dc:creator>NickRobles2</dc:creator>
      <dc:date>2021-09-17T14:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099866#M2456</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/338049"&gt;@NickRobles2&lt;/a&gt;&amp;nbsp;I'm going to ask one of the forum admins to move your post to somewhere you can get help with this from an ArcGIS Server point of view...&amp;nbsp; watch this space!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 13:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1099866#M2456</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2021-09-20T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: REST API requests using Java SDK?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1100004#M2457</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/338049"&gt;@NickRobles2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We're trying to work out where to move the question to get you the best answer. Can you tell me a bit more about why the back-end will interact with services rather that the app doing that? And does it have to be built in Java, or are you open to other technologies?&lt;/P&gt;&lt;P&gt;A little background, probably you know a lot of this:&lt;/P&gt;&lt;P&gt;The general model we follow for web apps is to let the services do any interaction with the db, abstracting direct db access into a set of REST APIs. Those REST APIs (which also cover other things you mentioned, like query, edit, working with attachments, reading service metadata, etc.) are documented here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We have many APIs that work with those REST APIs, and they broadly break down into APIs for working directly with services, and APIs for building 2D/3D apps using those services.&lt;/P&gt;&lt;P&gt;The former are a couple of APIs that wrap GET/POST/etc. calls to the REST APIs: the &lt;A href="https://developers.arcgis.com/arcgis-rest-js/" target="_blank" rel="noopener"&gt;ArcGIS REST JS&lt;/A&gt;&amp;nbsp;API, and the &lt;A href="https://developers.arcgis.com/python/" target="_blank" rel="noopener"&gt;ArcGIS API for Python&lt;/A&gt;. The Python API has been around longer and has more capabilities, but is for building apps and scripts that process data, so probably not what you want. ArcGIS REST JS is more suited to building a server-side component to support web clients. This sounds closest to what you're asking for, but is JavaScript.&lt;/P&gt;&lt;P&gt;Of the group of APIs we have for building 2D and 3D apps, there is the &lt;A href="https://developers.arcgis.com/javascript/latest/" target="_blank" rel="noopener"&gt;ArcGIS API for JavaScript&lt;/A&gt;, and the ArcGIS Runtime SDKs. Both are meant for building apps, and using Runtime SDKs to build a backend services&lt;SPAN&gt;&amp;nbsp;is against our terms and conditions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;One other potential option: If you already have ArcGIS Enterprise and expose services, and just want to expose more sophisticated behavior for those services, then &lt;A href="https://enterprise.arcgis.com/en/server/latest/develop/linux/about-extending-services.htm" target="_blank" rel="noopener"&gt;Server Object Extensions (SOEs) and Server Object Interceptors (SOIs)&lt;/A&gt; are likely a good solution.&lt;/P&gt;&lt;P&gt;It boils down to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do you really need to have this logic in the back-end or can it be in the web app, hitting services?&lt;/LI&gt;&lt;LI&gt;If SOEs and SOIs will do the job for you, I'll move this question over to &lt;A href="https://community.esri.com/t5/arcgis-enterprise-extensibility-questions/bd-p/arcgis-enterprise-extensibility-ques" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. If not, you'll need to keep working with the REST services. If the backend can be written in JavaScript, you might be able to lean on the ArcGIS REST JS API.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Does that help?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 17:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/rest-api-requests-using-java-sdk/m-p/1100004#M2457</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-09-20T17:23:46Z</dc:date>
    </item>
  </channel>
</rss>

