SMSProvidingWebService


Click here for a complete list of operations.

getGatewayResultCodes

returns always OK
Used to publish the GatewayResults.Codes enum

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /smsgateway/smsgatewayservice.asmx HTTP/1.1
Host: sms02.swiss-safelab.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.swiss-safelab.com/smsgateway/getGatewayResultCodes"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getGatewayResultCodes xmlns="http://www.swiss-safelab.com/smsgateway/" />
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <getGatewayResultCodesResponse xmlns="http://www.swiss-safelab.com/smsgateway/">
      <getGatewayResultCodesResult>NONE or OK or DEFAULT_ERROR or AUTHENTICATION_FAILED or INVALID_SMS_FORMAT or INSUFFICIENT_CREDITS or SMS_SEND_ERROR or GATEWAY_UNAVAILABLE or PROVIDER_ERROR or REQUESTED_ACTION_FAILED or DATABASE_ERROR or INVALID_REQUEST_DATA_ERROR or ACCESS_WITH_OLD_PASSWORD_GRANTED or EMAIL_SEND_ERROR or GET_CREDIT_ERROR or FILESYSTEM_ERROR or DISTRIBUTION_LIST_NOT_FOUND or INVALID_RECIPIENT or TOO_MANY_RECIPIENTS</getGatewayResultCodesResult>
    </getGatewayResultCodesResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /smsgateway/smsgatewayservice.asmx HTTP/1.1
Host: sms02.swiss-safelab.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getGatewayResultCodes xmlns="http://www.swiss-safelab.com/smsgateway/" />
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <getGatewayResultCodesResponse xmlns="http://www.swiss-safelab.com/smsgateway/">
      <getGatewayResultCodesResult>NONE or OK or DEFAULT_ERROR or AUTHENTICATION_FAILED or INVALID_SMS_FORMAT or INSUFFICIENT_CREDITS or SMS_SEND_ERROR or GATEWAY_UNAVAILABLE or PROVIDER_ERROR or REQUESTED_ACTION_FAILED or DATABASE_ERROR or INVALID_REQUEST_DATA_ERROR or ACCESS_WITH_OLD_PASSWORD_GRANTED or EMAIL_SEND_ERROR or GET_CREDIT_ERROR or FILESYSTEM_ERROR or DISTRIBUTION_LIST_NOT_FOUND or INVALID_RECIPIENT or TOO_MANY_RECIPIENTS</getGatewayResultCodesResult>
    </getGatewayResultCodesResponse>
  </soap12:Body>
</soap12:Envelope>