---
title: Test Client
slug: epmm/v1web-service-api-guide/test-client
createdAt: 2026-10-06T08:06:06.044Z
---

A sample http test client implemented in Java is provided below. You can access this client on the support site: [https://support.Ivanti.com/support/clients/mobileiron-api-httpclient.zip](https://support.mobileiron.com/support/clients/mobileiron-api-httpclient.zip).

1. Extract the file, mobileiron-api-httpclient.zip . Below is the directory structure of the test client.

:::CodeblockTabs{indent="1"}
Code

```xml
|-- pom.xml
-- src
|-- main
|   |-- java
|   |   -- com
|   |       -- mobileiron
|   |           |-- rs
|   |           |   -- client
|   |           -- ws
|   |               -- client
|   |                   -- http
|   |                       |-- AlertWebServiceHttpClient.java
|   |                       |-- AppStoreWebServiceHttpClient.java
|   |                       |-- DMWebServiceHttpClient.java
|   |                       |-- EASWebServiceHttpClient.java
|   |                       |-- MAIWebServiceHttpClient.java
|   |                       |-- SMWebServiceHttpClient.java
|   |                       -- WebServiceHttpClientBase.java
|   -- resources
|       |-- applicationContext-miws-client.xml
|       |-- miws-client.properties
|       -- miws-v1.wadl
-- test
    |-- java
    |   -- com
|       -- mobileiron
    |           |-- rs
    |           -- ws
|               -- client
    |                   -- http
|                       -- WebServiceHttpClientTest.java
    -- resources
`-- log4j.xml
```
:::

2. Edit the properties in miws-client.properties under src/main/resources.
   webservice.hostname=

:::Paragraph{indent="1"}
webservice.hostname=\<your mobileiron appliance host name or IP Address>
:::

:::Paragraph{indent="1"}
webservice.url=/api
:::

:::Paragraph{indent="1"}
webservice.version=/v1
:::

:::Paragraph{indent="1"}
user name who has the ‘API’ role assigned. See Chapter- 2 Authentication
:::

:::Paragraph{indent="1"}
webservice.username=miadmin&#x20;
:::

:::Paragraph{indent="1"}
Password of the above user.
:::

:::Paragraph{indent="1"}
webservice.password=\<password>
:::

3. Change directory to client and execute maven to build and run the test client.

:::Paragraph{indent="1"}
cd client
mvn clean install
:::

:::Paragraph{indent="1"}
The above mvn command will do a clean build and execute the test client. The output of the tests are printed on the console and to a file named miws-test.log in the ‘client’ directory.
:::
