google-code-export / smslib

Automatically exported from code.google.com/p/smslib
1 stars 0 forks source link

Script Gateway(send sms over soap...) #509

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
producing a complete gateway is complicated,  the user's requests are unstable, 
they are so impatient, but so boring to code for such a requirements.
So I add a script gate way, you can use it to send sms over soap or rest or 
anyway else. use it you can write a sms soap gateway in a minute, just a piece 
of cake.
It use groovy, to use it just add groovy*all*jar to your classpath( if you use 
soap do not forget add a groovy-wslite-*.jar), and complile a 
org.smslib.smsserver.gateways.GroovyGateway to your classpath, and a 
scipt(example:Sms_Script.groovy) in the path.
Now modify the script, in a common way just modify the _doSend function, and 
you can write it in a different way( it's just a java class of AGateway as 
usual).
Last modify the SMSServer.conf like this:
gateway.0=modem1, GroovyGateway
modem1.script=Sms_Script.groovy

Original issue reported on code.google.com by wonder...@gmail.com on 14 Sep 2012 at 5:14

Attachments:

GoogleCodeExporter commented 9 years ago
Impressive... at least to someone like me without Groovy knowledge.

My only worry is how am I going to support this!

Original comment by admin@smslib.org on 16 Sep 2012 at 8:25

GoogleCodeExporter commented 9 years ago

Original comment by admin@smslib.org on 2 Jan 2014 at 12:04