For the complete documentation index, see llms.txt. This page is also available as Markdown.

Code examples

SOAP client setup and working examples for C#, Python, and Java.

Setup and dependencies

Add a WSDL reference in Visual Studio:

  1. Right-click the project.

  2. Select Add Connected Service or Add Web Reference.

  3. Enter https://soap.ecall.ch/eCall.asmx.

  4. Set a namespace, for example eCallService.

You can also use dotnet-svcutil:

dotnet tool install --global dotnet-svcutil
dotnet-svcutil https://soap.ecall.ch/eCall.asmx?WSDL

Send SMS — SendSMSBasic

using eCallService;

var client = new eCallSoapClient(
    eCallSoapClient.EndpointConfiguration.eCallSoap12
);

var request = new SendSMSBasicRequest
{
    AccountName     = "johnsmith",
    AccountPassword = "secretpassword",
    Address         = "0041791234567",
    Message         = "Hello from eCall!",
    JobID           = "SMS-001"
};

var response = await client.SendSMSBasicAsync(request);

if (response.ResponseCode == 0)
{
    Console.WriteLine("SMS successfully submitted.");
}
else
{
    Console.WriteLine($"Error {response.ResponseCode}: {response.ResponseText}");
}

Send fax with attachment — SendFax

Send voice message — SendVoiceBasic

Query send status — GetStateBasic

Last updated

Was this helpful?