Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
How to connect to http Gateway
sp_NewPost Add Reply sp_NewTopic Add Topic
November 15, 2016
9:39 am
Henk Helmantel
Admin
Forum Posts: 553
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thank you for the specification of the HTTP API of your SMS service provider.

As I mentioned in my first reply, the HTTP POST call will not work in the HTTP Gateway of Diafaan SMS Server because this call requires an XML formatted message content, and that is not supported in the generic HTTP options of the HTTP Gateway. The only way to implement this in Diafaan SMS Server is using a script.

You can use the HTTP GET call that is mentioned in the specification with Diafaan SMS Server. To use the HTTP API of your SMS service provider in the HTTP Gateway, set the 'Web page' to 'http://transport.wsoft.ru' and the 'HTTP query' to:
'msisdn=[to]&servicenumber=1234&operator=MTS&operator-id=100&text=[message-text]'
(perhaps without the 'servicenumber=1234&operator=MTS&operator-id=100&' part)

Regards, Henk

November 14, 2016
3:03 pm
jislom
Guest
Guests

i send mail to dms@diafaan.com ? with instuction HTTP for WINGS SMS GATE , but text on russian

November 14, 2016
2:47 pm
Henk Helmantel
Admin
Forum Posts: 553
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

I don't fully understand your question. Can you rephrase the question and provide more background information?

Regards, Henk

November 14, 2016
2:11 pm
jislom
Guest
Guests

How to use if give this is

http POST request

This is a test message

November 14, 2016
9:55 am
Henk Helmantel
Admin
Forum Posts: 553
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Jislom,

The basic- and full editions of Diafaan SMS Server have an HTTP Gateway option to send simple HTTP GET or POST requests to an SMS service. However, according to the curl example script from your SMS service provider, it uses an XML formatted message content and that is not supported by the HTTP Gateway in Diafaan SMS Server.

The only way to add support for this XML based HTTP API is to use the Scripting Gateway in Diafaan SMS Server and write your own custom script for it. The Scripting Connector supports scripts in C# or Visual Basic.NET.

Regards, Henk

November 14, 2016
7:55 am
jislom
Guest
Guests

How to connect to WINGS SMS Gate

Content provider give this parametr

<?php

$input_xml='

test

';
$url = "http://90.204.0.42:8081/re-smsbroker";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml;charset=UTF-8'));
curl_setopt($ch, CURLOPT_POSTFIELDS, "$input_xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 364

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 532

Posts: 1847

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 553