URI is not absolute for SOAP request

Hello
i wanted to write a script that will permit me to test Soap API.
but i keep getting this error
can someone help ?
Thanks if advance

This is the code i’m running :

request = new RequestObject('SOAP')


// Set Up Request

request.setSoapRequestMethod('SOAP12')
request.setSoapServiceFunction('SoapFunction')
request.setSoapServiceEndpoint("http://localhost:8080/service.asmx")
request.setWsdlAddress("http://localhost:8080/service.asmx?wsdl")


request.setUseServiceInfoFromWsdl(false)

// Set Up Headers

HTTPHeader = new ArrayList<TestObjectProperty>()

HTTPHeader.add(new TestObjectProperty('Content-Type', ConditionType.EQUALS, "application/xml"))


request.setHttpHeaderProperties(HTTPHeader)

// Set Up Body

def builder = new MarkupBuilder()

builder.MyObject) {

....

}


request.setSoapBody(builder.toString())

response = WS.sendRequest(request)

And this is the error message i’m getting :

  ERROR c.k.k.core.keyword.internal.KeywordMain  - ❌ Unable to send request (Root cause: java.lang.IllegalArgumentException: URI is not absolute
	at com.kms.katalon.core.webservice.common.HttpUtil.sendRequest(HttpUtil.java:114)
	at com.kms.katalon.core.webservice.common.BasicRequestor.send(BasicRequestor.java:58)
	at com.kms.katalon.core.webservice.helper.WebServiceCommonHelper.sendRequest(WebServiceCommonHelper.java:28)
	at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword$_sendRequest_closure1.doCall(SendRequestKeyword.groovy:40)
	at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword$_sendRequest_closure1.call(SendRequestKeyword.groovy)
	at com.kms.katalon.core.keyword.internal.KeywordMain.runKeyword(KeywordMain.groovy:74)
	at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword.sendRequest(SendRequestKeyword.groovy:38)
	at com.kms.katalon.core.webservice.keyword.builtin.SendRequestKeyword.execute(SendRequestKeyword.groovy:33)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
	at com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords.sendRequest(WSBuiltInKeywords.groovy:40)
	at com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords$sendRequest.call(Unknown Source)
	at New Test Case.run(New Test Case:110)
	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
	at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:442)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:433)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:412)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:404)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:281)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:138)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:129)
	at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
	at TempTestCase1640620281868.run(TempTestCase1640620281868.groovy:25)