SOAPMethod.UseSocket

From Xojo Documentation

Method

SOAPMethod.UseSocket(Socket as HTTPSocket orSocket as HTTPSecureSocket)

Supported for all project types and targets.

This method tells the SOAPMethod which socket to use when communicating with the SOAP service.

Notes

If no socket is set, then one will be created and used when necessary. This method accepts either an HTTPSocket or an HTTPSecureSocket. Use this feature when you want to connect via a proxy or SSL connection by setting up the properties of the socket and then assigning it to the SOAPMethod.

Example

Var sock As New HTTPSecureSocket
sock.CertificateFile = yourCertificateFolderitem // A FolderItem that refers to your certificate file

Var webService As New SOAPMethod
webService.UseSocket(sock)
webService.LoadWSDLFromURL("https://myservice.example.com/WebService.asmx?WDSL")