They have a soap service

i want the sendsms call

<s:element name="SendSMS">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UserID" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="PWD" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="APIKEY" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="FROM" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="TO" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MSG" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>


How do i fill this request using xmlrpclib?

Here is my code

import xmlrpclib
server = xmlrpclib.ServerProxy('*
https://www.experttexting.com/exptapi/exptsms.asmx?WSDL*')

the next line does not work
server.SendSMS({'UserID':'RAMSTEIN74','PWD':'xxxxxxxx','APIKEY':'xxxxxx1','FROM':'CIRES','TO':'351966788560','MSG':'aaaaa'})
ProtocolError: <ProtocolError for
www.experttexting.com/exptapi/exptsms.asmx?WSDL: 500 Internal Server Error>


and this does not either
server.SendSMS({'UserID':'RAMSTEIN74','PWD':'91900000','APIKEY':'9A469822C37D41','FROM':'CIRES','TO':'351966788560','MSG':'aaaaa')
ProtocolError: <ProtocolError for
www.experttexting.com/exptapi/exptsms.asmx?WSDL: 500 Internal Server Error>



2013/6/14 António Ramos <[email protected]>

> Expert Texting does what i need.
> Thank you Simone
>
>
> 2013/6/14 Niphlod <[email protected]>
>
>> don't know if it works for you, but there's a contrib for sending sms
>> gluon/contrib/sms_utils.py.
>> on the receiving email part, there's the dal adapter for an IMAP inbox.
>>
>> In italy we have skebby.it that has a nice feature of mail 2 sms, but
>> again, I don't know if it's available in your country.
>>
>> Also, look here for a simple mapping list
>> http://en.wikipedia.org/wiki/List_of_SMS_gateways.
>> At that point you'd just need to create a forwarder.
>>
>> PS: having a smartphone would solve the issue :P
>>
>> Il giorno venerdì 14 giugno 2013 16:44:20 UTC+2, Ramos ha scritto:
>>>
>>> Hello
>>> In my company we have some need to send sms or even a call to a mobile
>>> phone every time a UPS goes down,especially after hours.
>>>
>>> Also we are a chemical factory so some alarms of some kind could alert
>>> some people's phone.
>>>
>>>
>>> I would like to know if you know any cloud service that receives an
>>> email and sends it to mobile phones via sms or a call.
>>>
>>> I have some code already to create an app like this but i dont like/want
>>> to reinvent the wheel
>>>
>>>
>>> Ex
>>> My ups goes down and sends an email like
>>>
>>>
>>> to: text2+351...@2myphone.**me
>>> cc:call2+sup...@**2myphone.me
>>> Subject:myaccesstoken
>>> Body:
>>> mymessage......
>>>
>>>
>>> Is this interesting? already available?
>>>
>>> Bes tregards
>>>
>>> António
>>>
>>  --
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to