דלג לתוכן הראשי

SOAP Web Service API

SOAP-API allows you to integrate your application to the Maskyoo SMS gateway using the SOAP protocol.

WSDL

ResourceURL
Document pagehttps://www.sms.deals/api/ws_soap.php
WSDL linkhttps://www.sms.deals/api/ws_soap.php?WSDL

Code Examples

PHP (NuSOAP)

<?php
// Nusoap library 'nusoap.php' should be available
require_once('nusoap.php');

$wsdl = "https://www.sms.deals/api/ws_soap.php?WSDL";
$soap = new soapclient($wsdl, "wsdl");
$proxy = $soap->getProxy();

$message = "msg";
$dest = "0501234567";
$sender = "0501987654";
$sendtime = "";
$pass = "password";
$callback_url = "";

$result = $proxy->send_sms($message, $dest, $sender, $sendtime, $user, $pass, $callback_url);
echo($result);
?>

C# (.NET)

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using WindowsFormsApplication1.sms_deals;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
private void button1_Click(object sender, EventArgs e)
{
var sms = new sms_deals.SoapSRV();
string message = sms.send_sms("msg", "0501234567", "0501987654", "",
"[email protected]", "password", "", "", "");
MessageBox.Show(message);
}
}
}

Function Parameters

The send_sms function accepts the following parameters:

ParameterTypeDescription
messageStringSMS text content
destStringDestination phone number
senderStringSender phone number or name
sendtimeStringScheduled send time (optional)
userStringAccount email/username
passStringAccount password
callback_urlStringDelivery status callback URL (optional)

השפעות על המערכת

ממשק ה‑SOAP קיים בעיקר לצורכי תאימות לאחור:

  • תאימות לגרסאות ישנות — מיועד לאינטגרציות קיימות שנכתבו בעבר מעל SOAP/WSDL; שליחות חדשות נרשמות באותו _notifications כמו REST
  • אימות — בניגוד ל‑REST, כאן האימות מבוסס user/pass ולא Bearer Token; מומלץ לעבור ל‑REST במידה אפשרי
  • קרדיט — כל שליחה מורידה נקודה מחשבון ה‑SMS בדיוק כמו דרך REST
  • פחות בשימוש — ממשק חדש לא מומלץ; עדיפות ברורה ל‑REST API
  • פורמט תגובה — XML בלבד; דורש יכולת parsing של SOAP envelope בצד הלקוח

ראו גם