I am trying to send a message using SOAP. Everything seems to work but no message comes through.

I get no error message at all

here is my code

#!/usr/bin/python
from SOAPpy import WSDL
print "Content-type: text/html\n"
wsdlFile = 'http://www.adamplowman.com/sendservice.wsdl'
server = WSDL.Proxy(wsdlFile)
username = 'adamplowman'
password = 'DreamOn'
destination = '447841633135'
originator = 'Adam'
message = 'test'
messagetype = 'text'
maxconcat = '2'
sendtime =' 2005-10-10T17:00:00Z'
callback = 'http://adamplowman.com/form/callback.php?reportcode=%code&destinationnumber=%dest&myreference=123'
auth = server.auth(username,password)
adam = server.auth.SoapSendSms(destination,originator,message,messagetype,maxconcat,sendtime,callback)
len(adam.resultElements)    
                             
print results.resultElements[0].URL

here is a link to the wsdl file http://www.adamplowman.com/sendservice.wsdl
and here is the domain sending the message
http://adamplowman.com/cgi-bin/send_message.py

i have made some changes and now i am getting an internal server error and its due to the auth part. I am not sure how you go about authorisation within SOAP and python

#!/usr/bin/python
from SOAPpy import WSDL
print "Content-type: text/html\n"

wsdlFile = 'http://gw1.aql.com/soap/sendservice.php?WSDL'
server = WSDL.Proxy(wsdlFile)
username = 'adamplowman'
password = 'sdfdsfsdfdsf'

destination = [447841633135]  
originator = 'Adam'
message = 'test'
messagetype = 'text'
maxconcat = 2 
sendtime ='2005-10-10T17:00:00Z'
callback = 'http://adamplowman.com/form/callback.php?reportcode=%codedestinationnumber=%dest&myreference=123' 
server.authValue = New auth() 
server.authValue.username = username
server.authValue.password = password 
        server.SoapSendSms(destination,originator,message,messagetype,maxconcat,sendtime,callback)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.