Risposta del webservice in caso di invio con successo:
HTTP/1.1 200 OK
Content-Length: 512
Content-Type: text/xml; charset=ISO-8859-1
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:sendMmsResponse xmlns:ns1="urn:sendMmswsdl">
<response xsi:type="xsd:int">3700</response>
</ns1:sendMmsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Risposta del webservice in caso di invio fallito:
HTTP/1.1 500 Internal Server Error
Status: 500 Internal Server Error
Content-Length: 663
Content-Type: text/xml; charset=ISO-8859-1
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode xsi:type="xsd:string">KO 211</faultcode>
<faultactor xsi:type="xsd:string"></faultactor>
<faultstring xsi:type="xsd:string">quota_abs reached</faultstring>
<detail xsi:type="xsd:string"></detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Richiesta di invio MMS con immagine e password in chiaro
(autenticazione basata sull'IP)
Host: www.smsend.it
Content-Type: text/xml; charset=ISO-8859-1
"urn:sendMmswsdl#sendMms"
Content-Length: 1377
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:sendMmswsdl">
<SOAP-ENV:Body>
<tns:sendMms xmlns:tns="urn:sendMmswsdl">
<id xsi:type="xsd:string">C00000_001</id>
<password xsi:type="xsd:string">password</password>
<ticket xsi:type="xsd:string"></ticket>
<subject xsi:type="xsd:string">Oggetto</subject>
<text xsi:type="xsd:string">Testo dell'MMS</text>
<rcpt xsi:type="xsd:string">+393477005440</rcpt>
<imagedata
xsi:type="xsd:base64Binary">R0lGODlhEAAQANUAAAA(...)</imagedata>
<sounddata xsi:nil="true" xsi:type="xsd:base64Binary"/>
</tns:sendMms>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Codici di errore:
KO 101 not allowed
KO 102 operation not permitted
KO 103 bad recipient
KO 104 not allowed
KO 105 not allowed
KO 106 not allowed
KO 107 no auth suitable
KO 109 carrier problem
KO 110 Msg Blocked
KO 111 banned
KO 124 text too long
KO 211 quota_abs reached (credito non disponibile)
KO 213 quota_ny reached (notifiche non disponibili)
KO 215 Image file cannot be bigger than 100kB
KO 216 Image file type not supported
KO 217 Sound file bigger than 100kB
KO 218 Sound file type not supported
KO 300 System (Internal Error)
KO 301 (Connection Problem)
KO 302 (Generic Error)
KO 303 (Connection Problem)
KO 310 type unsupported
KO 311 send error
KO 400 (Internal Error)
KO 401 (Internal Error)
KO 402 (Internal Error)
KO 500 ERROR (Internal Error)
KO 501 ERROR (Internal Error)
KO 502 (Internal Error)
KO 555 Relay Error
N.B. L'accesso è limitato ai soli indirizzi IP o subnet abilitati al servizio back-office.
N.B. Devi avere un account smSend.
N.B. Id, password e dns di accesso verranno forniti su richiesta.
Repository delle A.P.I. smSend su Github
Contribuisci e crea anche tu progetti unici con il repository delle A.P.I. smSend su Github - social coding - http://github/smsend