org.kubinity.soap.client.command.CommandInvoker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of soap-client Show documentation
Show all versions of soap-client Show documentation
Kubinity SOAP Client to communicate with TrinityCore SOAP Server
The newest version!
package org.kubinity.soap.client.command
import org.kubinity.soap.client.soap.SoapClient
class CommandInvoker(private val soapClient: SoapClient) {
fun invoke(command: Command) {
val soapResponse = soapClient.call(command.getSoapMessage())
if (soapResponse.soapBody.hasFault()) {
throw CommandInvokeException(soapResponse.soapBody.fault.faultString)
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy