Kotlin – SOAP Web Service

Last Updated on

This post demonstrates how to create a simple SOAP-based Web Service with Kotlin.


Stuff used for this post.

  • Kotlin 1.1
  • JDK 8

public final methods

By default, member functions are public final for the underlying Java 8 run time environment. For example, consider these Kotlin codes.

Note that we’ll modify the same class a bit later in this post.

The codes above are equivalent to these Java codes.

Using public final methods in SOAP Web Services causes the following error:

Our Web Service Codes

These are the complete codes for our sample web service.

To retrieve the WSDL, use http://localhost:8080/?wsdl



Karl San Gabriel

Professional Software Developer