Dim URL As String = "https://sandbox.gestpay.net/gestpay/GestPayWS/WsCryptDecrypt.asmx?wsdl"
Dim xml As String
xml = $"<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<Encrypt>
<shopLogin>9000001</shopLogin>
<uicCode>242</uicCode>
<amount>300.00</amount>
<shopTransactionId>34az85ord19</shopTransactionId>
<buyerName>Pippo Baudo</buyerName>
<buyerEmail>[email protected]</buyerEmail>
<languageId>1</languageId>
</Encrypt>
</soap:Body>
</soap:Envelope>"$
Dim job As HttpJob
job.Initialize("wdsl", Me)
job.PostString(URL, xml)
job.GetRequest.SetContentType("text/xml; charset=utf-8")
job.GetRequest.SetHeader("Content-Type", "text/xml; charset=utf-8")
Wait For (job) JobDone (j As HttpJob)
If j.Success Then
Log("OK: ")
Else
Log("Error: ")
End If