Connecting to SOAP API

Hello,
I am tring to connect to a webservices API using XOJO from some software that we use. I have the VB.NET code but wanted to understand how to translate this to XOJO… Does anyone know how this would be done.

Dim strWebURI As String = " name of webservices/atws.asmx"

Dim myService As New WebReference.ATWS

myService.Url = strWebURI

Dim cred As New System.Net.NetworkCredential(“myUserName@domain.com”, “myPassword”)

Dim credCache As New System.Net.CredentialCache

credCache.Add(New Uri(myService.Url), “Basic”, cred)

myService.Credentials = credCache