Click or drag to resize

Transmitter5SetUrl Method

Set the web service URL. Used to override the configured web service address, for example to programmatically switch between the test and production servers.

Namespace: SwissDecTX
Assembly: SwissDecTX.Transmitter5 (in SwissDecTX.Transmitter5.dll) Version: 5.0.0.0 (5.0.0.0)
Syntax
public void SetUrl(
	string url
)

Parameters

url  String
The fully qualified URI of the service, starting with http://... or https://...
Example
Calling Transmitter.SetUrl()
   using SwissDecTX;

// ...

       try {

           var tx = new Transmitter5();

           tx.SetUrl("https://...");

           // TODO: Set the certificates and/or credentials, HTTP proxy... if needed

           // TODO: Use the transmitter...

       } catch (Exception ex) {

           MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

       }
See Also