This topic describes how to create, configure, build, and deploy a SOAP server object extension (SOE) using IntelliJ IDEA and Apache Maven.
The workflow includes the following steps:
- Create the SOAP SOE project
- Configure the SOE service type
- Build the SOAP SOE project
- Deploy the SOE to ArcGIS Server
This tutorial uses the Simple SOAP SOE sample, which is included with the ArcGIS Enterprise SDK at <Enterprise SD.
Create the SOAP SOE project
To create a SOAP SOE using IntelliJ, complete the following steps:
-
Ensure that ArcGIS Enterprise SDK, Java, and Maven are all installed on your development environment. See more details in the Installation section.
-
Launch IntelliJ and click File。
-
Click New and Select Project.
-
Choose Maven Archetype on the left menu.
-
Give name for the project and choose the location you would like to use.
-
Ensure the project SDK is set to the supported JDK before you proceed.
-
Keep the Catalog as Internal.
-
For Archetype:
Click the Add button on the right, type the following values in the Add Archetype wizard, and then click Add:
- GroupId:
com.esri.arcgis.enterprise.sdk - ArtifactId:
soap-soe-archetype - Version:
12.2.0(use12.2.0for 12.2 SDK)
The
soap-soe-archetypeis now added. - GroupId:
-
Click Advanced Settings.
-
Confirm the information in the parameters below and click Create.
-
Ensure Maven home directory is set to use the supported Maven and Click Finish.
-
A new SOE project is created. You should see
Build Successon the right of the bottom Run Tool Window.
If you see any warnings, you can ignore them for now as long as the project successfully builds (Build Success) and generates the entsdksamples.soe package and Java class and I interface under the src\main\java folder. You will address those warnings during project build. Continue to build the SOAP SOE project now.
Configure the SOE service type
After creating the SOAP SOE project, configure the ArcGIS Server service type that the extension will support.
-
Open the generated
Javaclass underSimple SOAPSO E.java src/main/java. -
Locate the
@annotation.Server Object Ext Properties -
Set the
servicetypeattribute to one of the following values:Map— Targets map services.Service Image— Targets image services.Service
For a map service, use:
servicetype = "MapService"For an image service, use:
servicetype = "ImageService"The servicetype attribute determines the type of ArcGIS Server service on which the SOE can be enabled.
Build the SOAP SOE project
Building an SOE project will package the project's classes, dependencies, and resources into a .soe file, which can be deployed to ArcGIS Server. Since it's a Maven project, the Maven build lifecycle must be followed to build the SOAP SOE. Read more about project build.
You can build the SOE project in either the Maven tool window or the Terminal tool window.
Because the project is created from soap-soe-archetype, it automatically loads the boilerplate code that implements a ready-to-use SOE. For now, you can customize the display and description of the SOE and leave the rest of the code as is.
-
Open the SOE class
Java, located in theSimplesoap SOE src\main\javafolder (see A in the example above). -
Set the
displayandName descriptiontoJava Simple SOA(see B).P SOE -
Now follow these steps to build the project.
-
To build the project in the Maven tool window, do the following:
a. Click the Maven tab on the right side of IntelliJ (see C).
b. Expand
simplesoapsoe. You should see Lifecycle, Plugins and Dependencies listed.c. If you don't see Dependencies, click the Reimport All Maven Projects button (see D) on the far left of the tool bar in the Maven tool window.
d. Now you should see Dependencies, and com.esri.arcgis.enterprise.sdk:arcgis-enterprise-sdk:version is listed as one of the dependencies.
e. Expand Lifecycle and click install. You can also click clean and click install for a clean build of the project.
f. The project is built successfully with detailed log messages in the Run tool window (see E).
-
Alternatively, to build the project in the Terminal tool window, do the following:
a. Click the Terminal tab at the bottom of IntelliJ (see F).
b. Ensure the directory is pointing to the project's root directory.
c. Type
mvn clean install. This command does a clean build of the project, and you should seeBuild Success.
-
-
Once the build finishes, a new folder named
targetappears in the project's base directory, and you can find the SOE filesimplesoapsoe.soeand the generated WSDL fileJavain this folder (see G).Simple SOAPSO E.wsdl
If you would like to add third-party libraries as dependencies, you can add them to the project's pom.xml (see H). The POM contains project configuration information, such as the Java compiler (JDK) used, plug-ins used, project's dependencies, and project's version. Learn more about POM dependency management.
Deploy the SOE to ArcGIS Server
After successfully building the SOAP SOE, deploy it to a compatible ArcGIS Server environment.
Deployment involves two separate steps:
-
Register the extension: Upload and register the generated
.soefile with ArcGIS Server. For instructions, see Deploy extensions. -
Enable the extension: Enable the registered SOE on a compatible map or image service, depending on its configured service type. For instructions, see Enable extensions.
After enabling the extension, verify that its SOAP endpoint is accessible and test the exposed operations using a compatible SOAP client.