SMS Framework - clickatell API SOAP

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
onir_one's picture

Hello to all. I am new in the world drupal. I wanted to know if it was possible to extend the module sms_clickatell using the SOAP api for Clickatell. If you can do in that way can interact with the SOAP API
Thank you

Comments

Which functionality do you need?

aspope's picture

Hi onir_one. What functionality are you looking to get from Clickatell's SOAP API? We might already have what you need in development, with the GET/POST version.
~ap

WSDL - SOAP API

onir_one's picture

Thanks for your reply. Drupal I need to interact with a service that uses SOAP message but I do not have documentation of this service. So starting from the Clickatell API SOAP I would like to develop a gateway with this provider. The only parameter I is the wsdl file. But I do not know how to implement the gateway to talk with this wsdl file.

Ah

aspope's picture

Since SMS gateway APIs are so different you would be better off learning a PHP SOAP Client and writing a gateway module from scratch, rather than asking someone to write a SOAP version of an existing gateway module. Please forgive me for being blunt.

A quick search on Google "PHP SOAP Client" reveals http://www.php.net/soap along with a host of tutorials.

From memory, you specify the WSDL when you create the SOAP Client object and then you can call any operations that exist in the webservice. The SOAP Client will format any responses into objects/arrays that you can use in your code.

Writing the gateway module for the SMS Framework will be the easy part. There is only one hook that you have to use (hook_gateway_info()) with which you specify the name, send function, admin form and send form. If you want to receive messages, you simply expose a path which will take the parameters and call sms_incoming(). See also http://drupal.org/node/362258
~ap

Thank you for reply. Follow

onir_one's picture

Thank you for reply. Follow your advice and develop from scratch the gateway.